naudio / NAudio

Audio and MIDI library for .NET
MIT License
5.58k stars 1.1k forks source link

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

Open zhangxinghua01 opened 6 months ago

zhangxinghua01 commented 6 months 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 6 months ago

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