naudio / NAudio

Audio and MIDI library for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

waveout ini display error ,can't find a supporte foramt

zhangxinghua01 opened this issue · comments

waveOut = new WasapiOut((MMDevice)cbWRender.SelectedValue,
AudioClientShareMode.Exclusive,
false,
200);

         SignalGenerator   sg = new SignalGenerator();
            sg .Frequency = Signal_Freq; 
            sg .Type = SignalGeneratorType.Sin;

            waveOut.Init(sg );

for wasapi exclusive mode I think you'll need stereo IEEE floating point. Shared mode will do format conversion for you