Commit faf7e8fb authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Min frag = 3 was a bad idea for qsa sound card

parent 9af16179
...@@ -460,7 +460,7 @@ static void ms_qsa_write_process(MSFilter *f) { ...@@ -460,7 +460,7 @@ static void ms_qsa_write_process(MSFilter *f) {
params.start_mode = SND_PCM_START_DATA; params.start_mode = SND_PCM_START_DATA;
params.stop_mode = SND_PCM_STOP_STOP; params.stop_mode = SND_PCM_STOP_STOP;
params.buf.block.frag_size = pi.max_fragment_size; params.buf.block.frag_size = pi.max_fragment_size;
params.buf.block.frags_min = 3; params.buf.block.frags_min = 1;
params.buf.block.frags_max = -1; params.buf.block.frags_max = -1;
params.format.interleave = 1; params.format.interleave = 1;
params.format.rate = d->rate; params.format.rate = d->rate;
...@@ -503,7 +503,7 @@ static void ms_qsa_write_process(MSFilter *f) { ...@@ -503,7 +503,7 @@ static void ms_qsa_write_process(MSFilter *f) {
ms_message("Voices %d", setup.format.voices); ms_message("Voices %d", setup.format.voices);
ms_message("%s: Mixer Pcm Group [%s]", __FUNCTION__, group.gid.name); ms_message("%s: Mixer Pcm Group [%s]", __FUNCTION__, group.gid.name);
d->buffer_size = setup.buf.block.frag_size; d->buffer_size = setup.buf.block.frag_size * 3;
d->buffer = ms_malloc(d->buffer_size); d->buffer = ms_malloc(d->buffer_size);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment