hardware returns a different value
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7296
d7cf8633-e32d-0410-b094-
e92efae38249
Con_Printf("CoreAudio: AudioDeviceGetProperty() returned %d when getting kAudioDevicePropertyStreamFormat\n", status);
return false;
}
+
+ // Suggest the proper speed if it differs
+ if (requested.speed != streamDesc.mSampleRate)
+ {
+ if (suggested != NULL)
+ {
+ memcpy (suggested, requested, sizeof (suggested));
+ suggested->speed = streamDesc.mSampleRate;
+ }
+ return false;
+ }
+
Con_DPrint (" Hardware format:\n");
Con_DPrintf(" %5d mSampleRate\n", (unsigned int)streamDesc.mSampleRate);
Con_DPrintf(" %c%c%c%c mFormatID\n",