diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-02-23 22:56:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-23 22:56:34 +0100 |
commit | 023ba8975be6e3a592ed0e7cd5723b8152dec4a6 (patch) | |
tree | a646f726f1d60d9b66e3c787fab5e4d851202a8a /src/modules | |
parent | 33601afbb11b6caba8c2f057839bd234e094175a (diff) | |
download | pulseaudio-023ba8975be6e3a592ed0e7cd5723b8152dec4a6.tar.gz |
use pa_alsa_safe_delay() where appropriate
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/alsa/alsa-sink.c | 2 | ||||
-rw-r--r-- | src/modules/alsa/alsa-source.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index 615754958..d4a54fe61 100644 --- a/src/modules/alsa/alsa-sink.c +++ b/src/modules/alsa/alsa-sink.c @@ -522,7 +522,7 @@ static void update_smoother(struct userdata *u) { /* Let's update the time smoother */ - if (PA_UNLIKELY((err = snd_pcm_delay(u->pcm_handle, &delay)) < 0)) { + if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, &delay, u->hwbuf_size, &u->sink->sample_spec)) < 0)) { pa_log_warn("Failed to query DSP status data: %s", snd_strerror(err)); return; } diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c index b0b9d9f2c..f2dad4c59 100644 --- a/src/modules/alsa/alsa-source.c +++ b/src/modules/alsa/alsa-source.c @@ -492,7 +492,7 @@ static void update_smoother(struct userdata *u) { /* Let's update the time smoother */ - if (PA_UNLIKELY((err = snd_pcm_delay(u->pcm_handle, &delay)) < 0)) { + if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, &delay, u->hwbuf_size, &u->source->sample_spec)) < 0)) { pa_log_warn("Failed to get delay: %s", snd_strerror(err)); return; } |