aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-16 23:29:32 -0700
committerChris Robinson <[email protected]>2009-09-16 23:29:32 -0700
commitfb97ca6022308e5898dbfa43958f61bcaed82f30 (patch)
treef0a858dbaaa4f6d96a2bc8283a6b62de3f01f16d /Alc/alsa.c
parentcbcaa54173bf6b14435adf3daf9feb2fa2e37d04 (diff)
Remove left-over backend-specific period options
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 2adf7b02..956d69b7 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -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)