I've attempted to the Wave Format of an audio device using the solution proposed here : Setting MMDevice WaveFormat
Using the code proposed (after modifying NAudio that is) works fine when I try to set the Wave Format to 48000Hz,16Bits,1ch but fails when I try to set to 32000Hz,16Bits,1ch or any other wave format. I've checked that all the wave formats are proposed by the windows sound manager settings Popup
Any idea why I can only set on wave format ?
EDIT : My client's software uses 5 Jabra headsets plugged into the computer via a usb hub. Because of the usb performance limitations, it is necessary to set the devices à 32Khz in order to save bandwidth, especially if we want to plug more headsets in the future and until we can find a better way to plug so many headsets into the machine. Anyway that does not really explain why it fails to set the headset à 32Khz and succeeds at 48Khz (it fails at 44.1Hz as well btw). As a temporary measure I am using the CLI version of the tool SoundVolumeView and it succeeds in setting all the devices to 32Khz. Just was hoping to do everything with NAudio.