Audio output device for local audio playback (i.e. a sound card port).

This audio output sends audio data to a local output device such as a sound card. The audio is reproduced using DirectSound through SlimDX.

For instructions on how to list output devices, please see the AudioDeviceCollection documentation page.

Inheritance: IAudioOutput, IDisposable
Example #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            output = new AudioOutputDevice(Handle, 8000, 1);
            output.FramePlayingStarted += output_Started;
            output.Stopped += output_Stopped;

            input = new float[2][];
            input[0] = getSignal("Resources/mic1.wav");
            input[1] = getSignal("Resources/mic2.wav");
        }