From 5f542e20aa3f64246c3de718a39bd61bf5a54ec3 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Mon, 4 Dec 2000 10:08:30 +0000 Subject: [PATCH] More relaxed strategy --- aplay/aplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index 90bac3e..d809126 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -701,15 +701,15 @@ static void set_params(void) info.format_mask = 1 << hwparams.format; info.channels_min = info.channels_max = hwparams.channels; info.fragments_min = 2; - err = snd_pcm_strategy_simple(&strategy, 0, 1000000); + err = snd_pcm_strategy_simple(&strategy, 1000000, 2000000); assert(err >= 0); err = snd_pcm_strategy_simple_near(strategy, 0, SND_PCM_HW_PARAM_RATE, hwparams.rate, 10); assert(err >= 0); - err = snd_pcm_strategy_simple_near(strategy, 0, SND_PCM_HW_PARAM_FRAGMENT_SIZE, + err = snd_pcm_strategy_simple_near(strategy, 1, SND_PCM_HW_PARAM_FRAGMENT_SIZE, hwparams.rate * frag_length / 1000, 1); assert(err >= 0); - err = snd_pcm_strategy_simple_near(strategy, 0, SND_PCM_HW_PARAM_BUFFER_SIZE, + err = snd_pcm_strategy_simple_near(strategy, 2, SND_PCM_HW_PARAM_BUFFER_SIZE, hwparams.rate * buffer_length / 1000, 1); assert(err >= 0); err = snd_pcm_hw_info_strategy(handle, &info, strategy); -- 2.47.3