summaryrefslogtreecommitdiff
path: root/plugins/alsa
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c
index 3579e9c3..618465b7 100644
--- a/plugins/alsa/alsa.c
+++ b/plugins/alsa/alsa.c
@@ -677,7 +677,7 @@ palsa_thread (void *context) {
UNLOCK;
int sleeptime = period_size-frames_to_deliver;
if (sleeptime > 0 && plugin.fmt.samplerate > 0 && plugin.fmt.channels > 0) {
- usleep (sleeptime * 1000 / plugin.fmt.samplerate / plugin.fmt.channels * 1000);
+ usleep (sleeptime * 1000 / plugin.fmt.samplerate * 1000);
}
}
}