aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/alsaaudio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index ba80dea..4d47aa0 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -385,12 +385,14 @@ static int alsa_open (int in, struct alsa_params_req *req,
obt = ptime;
}
else {
+ int dir = 0;
snd_pcm_uframes_t psize = req->period_size;
- err = snd_pcm_hw_params_set_buffer_size_near (
+ err = snd_pcm_hw_params_set_period_size_near (
handle,
hw_params,
- &psize
+ &psize,
+ &dir
);
obt = psize;
}