diff options
author | Max Kellermann <max@duempel.org> | 2008-10-10 14:40:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-10 14:40:54 +0200 |
commit | de2cb3f37568e7680549057f8d7b6d748c388480 (patch) | |
tree | 46f9f43a1f83b49945c8a4fc77f933fad9230e01 /src/audioOutputs/audioOutput_osx.c | |
parent | 6101dc6c768b09dbcdc1840a84b619a5a6a20129 (diff) | |
download | mpd-de2cb3f37568e7680549057f8d7b6d748c388480.tar.gz mpd-de2cb3f37568e7680549057f8d7b6d748c388480.tar.xz mpd-de2cb3f37568e7680549057f8d7b6d748c388480.zip |
audio_format: renamed sampleRate to sample_rate
The last bit of CamelCase in audio_format.h. Additionally, rename a
bunch of local variables.
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_osx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_osx.c b/src/audioOutputs/audioOutput_osx.c index 9071ed6c9..1fc0a5d9e 100644 --- a/src/audioOutputs/audioOutput_osx.c +++ b/src/audioOutputs/audioOutput_osx.c @@ -259,7 +259,7 @@ static int osx_openDevice(struct audio_output *audioOutput, return -1; } - streamDesc.mSampleRate = audioFormat->sampleRate; + streamDesc.mSampleRate = audioFormat->sample_rate; streamDesc.mFormatID = kAudioFormatLinearPCM; streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger; #ifdef WORDS_BIGENDIAN @@ -283,7 +283,7 @@ static int osx_openDevice(struct audio_output *audioOutput, } /* create a buffer of 1s */ - od->bufferSize = (audioFormat->sampleRate) * + od->bufferSize = (audioFormat->sample_rate) * (audioFormat->bits >> 3) * (audioFormat->channels); od->buffer = xrealloc(od->buffer, od->bufferSize); |