As noted in the FMOD API documentation, this peace of code gets the min and max frequency that the sound hardware can cope with. Is there some way to get the min/max frequency in a cross platform way that anyone is aware of?
int minhwfreq, maxhwfreq;
if (FSOUND_GetNumHardwareChannels() && FSOUND_GetOutput() == FSOUND_OUTPUT_DSOUND)
memset(&dscaps, 0, sizeof(DSCAPS));
dscaps.dwSize = sizeof(DSCAPS);
hr = IDirectSound_GetCaps((LPDIRECTSOUND)FSOUND_GetOutputHandle(), &dscaps);
minhwfreq = dscaps.dwMinSecondarySampleRate;
maxhwfreq = dscaps.dwMaxSecondarySampleRate;
- bear asked 11 years ago
Please login first to submit.