Re: [AD] audio input latency, changes &new func proposal

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At 01:33 PM 18/12/2003 +0100, you wrote:
> 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.



yes, this seems a very good plan.. ensures that the value is set before start_sound_input() can return a value. i shall investigate further where this code must go, i am still tracing out the code map (what calls what; what vars are relavent etc..) for sound input.


aj.






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/