(svn r17140) -Change: allow higher sample rate and higher quality samples. Based on work by orudge.

This commit is contained in:
rubidium
2009-08-09 23:04:08 +00:00
parent 9ee2a66c86
commit 8e058c2d27
7 changed files with 80 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ const char *SoundDriver_Cocoa::Start(const char * const *parm)
requestedDesc.mFormatID = kAudioFormatLinearPCM;
requestedDesc.mFormatFlags = kLinearPCMFormatFlagIsPacked;
requestedDesc.mChannelsPerFrame = 2;
requestedDesc.mSampleRate = GetDriverParamInt(parm, "hz", 11025);
requestedDesc.mSampleRate = GetDriverParamInt(parm, "hz", 44100);
requestedDesc.mBitsPerChannel = 16;
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;