aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-01-17 16:38:58 -0800
committerChris Robinson <[email protected]>2012-01-17 16:38:58 -0800
commitae7b61b040059f7112ad6fb38340b8c25d3393b7 (patch)
treecaaf30af822a2a3cebe3e77e7a6d1300c099ef57 /Alc/backends/alsa.c
parent5a2a5342403ca99a4613a56f69c95ed5ce91f8b2 (diff)
Avoid printing messages about device parameter changes in the backends
Diffstat (limited to 'Alc/backends/alsa.c')
-rw-r--r--Alc/backends/alsa.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c
index 362b25da..b20e6ed3 100644
--- a/Alc/backends/alsa.c
+++ b/Alc/backends/alsa.c
@@ -689,19 +689,10 @@ static ALCboolean alsa_reset_playback(ALCdevice *device)
if((i=snd_pcm_hw_params_set_channels(data->pcmHandle, p, 1)) < 0)
err = "set channels";
else
- {
- if((device->Flags&DEVICE_CHANNELS_REQUEST))
- ERR("Failed to set %s, got Mono instead\n", DevFmtChannelsString(device->FmtChans));
device->FmtChans = DevFmtMono;
- }
}
else
- {
- if((device->Flags&DEVICE_CHANNELS_REQUEST))
- ERR("Failed to set %s, got Stereo instead\n", DevFmtChannelsString(device->FmtChans));
device->FmtChans = DevFmtStereo;
- }
- device->Flags &= ~DEVICE_CHANNELS_REQUEST;
}
if(i >= 0 && (i=snd_pcm_hw_params_set_rate_resample(data->pcmHandle, p, 0)) < 0)
{
@@ -755,14 +746,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device)
snd_pcm_sw_params_free(sp);
- if(device->Frequency != rate)
- {
- if((device->Flags&DEVICE_FREQUENCY_REQUEST))
- ERR("Failed to set %dhz, got %dhz instead\n", device->Frequency, rate);
- device->Flags &= ~DEVICE_FREQUENCY_REQUEST;
- device->Frequency = rate;
- }
-
+ device->Frequency = rate;
SetDefaultChannelOrder(device);
data->size = snd_pcm_frames_to_bytes(data->pcmHandle, periodSizeInFrames);