naudio / NAudio

Audio and MIDI library for .NET
MIT License
5.37k stars 1.09k forks source link

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

Open zhangxinghua01 opened 1 month ago

zhangxinghua01 commented 1 month ago

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 );
markheath commented 1 month ago

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