diff options
author | Chris Robinson <[email protected]> | 2009-09-16 23:29:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-16 23:29:32 -0700 |
commit | fb97ca6022308e5898dbfa43958f61bcaed82f30 (patch) | |
tree | f0a858dbaaa4f6d96a2bc8283a6b62de3f01f16d /Alc/alsa.c | |
parent | cbcaa54173bf6b14435adf3daf9feb2fa2e37d04 (diff) |
Remove left-over backend-specific period options
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r-- | Alc/alsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -441,7 +441,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device) } allowmmap = GetConfigValueBool("alsa", "mmap", 1); - periods = GetConfigValueInt("alsa", "periods", device->NumUpdates); + periods = device->NumUpdates; periodSizeInFrames = device->UpdateSize; rate = device->Frequency; @@ -464,7 +464,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device) if(err == NULL && (i=psnd_pcm_hw_params_set_channels(data->pcmHandle, p, aluChannelsFromFormat(device->Format))) < 0) err = "set channels"; /* set periods (implicitly constrains period/buffer parameters) */ - if(err == NULL && periods && (i=psnd_pcm_hw_params_set_periods_near(data->pcmHandle, p, &periods, NULL)) < 0) + if(err == NULL && (i=psnd_pcm_hw_params_set_periods_near(data->pcmHandle, p, &periods, NULL)) < 0) err = "set periods near"; /* set rate (implicitly constrains period/buffer parameters) */ if(err == NULL && (i=psnd_pcm_hw_params_set_rate_near(data->pcmHandle, p, &rate, NULL)) < 0) |