diff options
author | Chris Robinson <[email protected]> | 2012-01-17 16:38:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-01-17 16:38:58 -0800 |
commit | ae7b61b040059f7112ad6fb38340b8c25d3393b7 (patch) | |
tree | caaf30af822a2a3cebe3e77e7a6d1300c099ef57 /Alc/backends/coreaudio.c | |
parent | 5a2a5342403ca99a4613a56f69c95ed5ce91f8b2 (diff) |
Avoid printing messages about device parameter changes in the backends
Diffstat (limited to 'Alc/backends/coreaudio.c')
-rw-r--r-- | Alc/backends/coreaudio.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Alc/backends/coreaudio.c b/Alc/backends/coreaudio.c index 7ac43325..ad5f0c16 100644 --- a/Alc/backends/coreaudio.c +++ b/Alc/backends/coreaudio.c @@ -238,10 +238,6 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if(device->Frequency != streamFormat.mSampleRate) { - if((device->Flags&DEVICE_FREQUENCY_REQUEST)) - ERR("CoreAudio does not support changing sample rates (wanted %dhz, got %dhz)\n", device->Frequency, streamFormat.mSampleRate); - device->Flags &= ~DEVICE_FREQUENCY_REQUEST; - device->UpdateSize = (ALuint)((ALuint64)device->UpdateSize * streamFormat.mSampleRate / device->Frequency); @@ -253,62 +249,25 @@ static ALCboolean ca_reset_playback(ALCdevice *device) switch(streamFormat.mChannelsPerFrame) { case 1: - if((device->Flags&DEVICE_CHANNELS_REQUEST) && - device->FmtChans != DevFmtMono) - { - ERR("Failed to set %s, got Mono instead\n", DevFmtChannelsString(device->FmtChans)); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; - } device->FmtChans = DevFmtMono; break; case 2: - if((device->Flags&DEVICE_CHANNELS_REQUEST) && - device->FmtChans != DevFmtStereo) - { - ERR("Failed to set %s, got Stereo instead\n", DevFmtChannelsString(device->FmtChans)); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; - } device->FmtChans = DevFmtStereo; break; case 4: - if((device->Flags&DEVICE_CHANNELS_REQUEST) && - device->FmtChans != DevFmtQuad) - { - ERR("Failed to set %s, got Quad instead\n", DevFmtChannelsString(device->FmtChans)); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; - } device->FmtChans = DevFmtQuad; break; case 6: - if((device->Flags&DEVICE_CHANNELS_REQUEST) && - device->FmtChans != DevFmtX51) - { - ERR("Failed to set %s, got 5.1 Surround instead\n", DevFmtChannelsString(device->FmtChans)); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; - } device->FmtChans = DevFmtX51; break; case 7: - if((device->Flags&DEVICE_CHANNELS_REQUEST) && - device->FmtChans != DevFmtX61) - { - ERR("Failed to set %s, got 6.1 Surround instead\n", DevFmtChannelsString(device->FmtChans)); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; - } device->FmtChans = DevFmtX61; break; case 8: - if((device->Flags&DEVICE_CHANNELS_REQUEST) && - device->FmtChans != DevFmtX71) - { - ERR("Failed to set %s, got 7.1 Surround instead\n", DevFmtChannelsString(device->FmtChans)); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; - } device->FmtChans = DevFmtX71; break; default: ERR("Unhandled channel count (%d), using Stereo\n", streamFormat.mChannelsPerFrame); - device->Flags &= ~DEVICE_CHANNELS_REQUEST; device->FmtChans = DevFmtStereo; streamFormat.mChannelsPerFrame = 2; break; |