Open zhangxinghua01 opened 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 );
for wasapi exclusive mode I think you'll need stereo IEEE floating point. Shared mode will do format conversion for you
waveOut = new WasapiOut((MMDevice)cbWRender.SelectedValue, AudioClientShareMode.Exclusive, false, 200);