aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-22 18:08:15 -0800
committerChris Robinson <[email protected]>2012-02-22 18:08:15 -0800
commit6ba0fd25a24f1bb27a31db2911976d6c8952cff7 (patch)
tree987373c95a221a8053732dbc03547f2b412e32b1 /Alc
parent1dde8ad60b75ea461c107242f88530e6281afaa8 (diff)
Remove an unneeded wrapper
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/alsa.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c
index 7be88934..19639543 100644
--- a/Alc/backends/alsa.c
+++ b/Alc/backends/alsa.c
@@ -392,14 +392,6 @@ static DevMap *probe_devices(snd_pcm_stream_t stream, ALuint *count)
}
-static int xrun_recovery(snd_pcm_t *handle, int err)
-{
- err = snd_pcm_recover(handle, err, 1);
- if(err < 0)
- ERR("recover failed: %s\n", snd_strerror(err));
- return err;
-}
-
static int verify_state(snd_pcm_t *handle)
{
snd_pcm_state_t state = snd_pcm_state(handle);
@@ -407,12 +399,12 @@ static int verify_state(snd_pcm_t *handle)
return -ENODEV;
if(state == SND_PCM_STATE_XRUN)
{
- int err = xrun_recovery(handle, -EPIPE);
+ int err = snd_pcm_recover(handle, -EPIPE, 1);
if(err < 0) return err;
}
else if(state == SND_PCM_STATE_SUSPENDED)
{
- int err = xrun_recovery(handle, -ESTRPIPE);
+ int err = snd_pcm_recover(handle, -ESTRPIPE, 1);
if(err < 0) return err;
}