Re: [AD] audio input latency, changes &new func proposal |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Q. can the buffer sizes be changed so they return smaller buffers (low
> latency) ?
I think so, but you should experiment.
> if the buffer size can be adjustable, can i propose a new function
> called set_sound_input_buffer_size(size_t i);
Yes, this makes sense. But I think extending start_sound_input is better:
int start_sound_input_ex(int rate, int bits, int stereo, int delay);
with 'delay' in milliseconds. The buffer length calculation would then be
done automatically.
--
Eric Botcazou