summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:24 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:24 +0000
commit0baa72aff9737e17741b83c8a6d87891fb03bc0f (patch)
treecfb2f5ab859ce5cf7ebea2ef2724fe721466e213 /src/sound
parentfd16b0c65c1b65908f20527c010a83b6e7e4cf3b (diff)
downloadopenttd-0baa72aff9737e17741b83c8a6d87891fb03bc0f.tar.xz
(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/cocoa_s.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound/cocoa_s.cpp b/src/sound/cocoa_s.cpp
index 945c15da2..1dc2a25d4 100644
--- a/src/sound/cocoa_s.cpp
+++ b/src/sound/cocoa_s.cpp
@@ -67,7 +67,7 @@ const char *SoundDriver_Cocoa::Start(const char * const *parm)
requestedDesc.mBytesPerFrame = requestedDesc.mBitsPerChannel * requestedDesc.mChannelsPerFrame / 8;
requestedDesc.mBytesPerPacket = requestedDesc.mBytesPerFrame * requestedDesc.mFramesPerPacket;
- MxInitialize(requestedDesc.mSampleRate);
+ MxInitialize((uint)requestedDesc.mSampleRate);
/* Locate the default output audio unit */
desc.componentType = kAudioUnitType_Output;