jtarrio / SoftwareModem

An implementation of the ITU-T V.21 modem standard, working on a PC over a sound card.
Apache License 2.0
35 stars 4 forks source link

Unsupported Wave Format #1

Open KOLANICH opened 9 years ago

KOLANICH commented 9 years ago

System.ArgumentException was unhandled HResult=-2147024809 Message=Unsupported Wave Format Source=NAudio on https://github.com/jtarrio/SoftwareModem/blob/master/SoftwareModem/MainWindow.xaml.cs#L46

jtarrio commented 9 years ago

I'm not at my computer now so I can't verify and it's been quite a while since I worked on this, but I think this would happen if you can't get stereo sound from the selected sound input device.

KOLANICH commented 9 years ago

Sorry, it seems it is NAudio bug

KOLANICH commented 9 years ago

https://github.com/jtarrio/SoftwareModem/pull/2

KOLANICH commented 9 years ago

hmm, now works on mic but doesn't on line in...

TheRealAaronPrince commented 1 year ago

Removing the line "capture.WaveFormat = new WaveFormat();" from MainWindow.xaml.cs worked for me, as it uses the default format settings.