I'm programming small program to output generated sound.
My sound card is capable of a 48000 or even 192000 sample rate. Its a Realtek ALC883 7.1+2 Channel High Definition Audio, and the specs can be found here.
However, DirectSound's MaxSampleRate has a maximum value of 20000?
I know I can get better than the maximum from my sound card, but how do I configure DirectSound to take advantage of this? When I try the following:
DirectSound ds = new DirectSound(DirectSound.GetDevices().First().DriverGuid);
MessageBox.Show(ds.Capabilities
.MaxSecondarySampleRate
.ToString(CultureInfo.InvariantCulture));
In message box the number displayed is "20000".
It could be that your sound card is not the first device in the devices list (for example, a video card with a tv outpout would appear in the list). You should look at the DeviceInformation.Description
property. Otherwise, maybe a problem with the driver ?