From: stevebvt <ste...@gm...> - 2008-04-10 15:24:54
|
i have a question regarding multiple calls to iaxc_play_sound (without waiting for a prior call to complete by the way - is there a way to determine when a call to iaxc_play_sound has completed?) i would have expected it to work this way (given the case of a call to iaxc_play_sound - where a prior call has not completed) 1. the new iaxc_sound{} would be added to the end of the existing chain of iaxc_sounds (fifo) using iaxc_sound.next 2.when the current iaxc_sound completed the next iaxc_sound would become the head of the fifo queue & output what the code sees to do is 1. the new iaxc_sound{} is added to the front of the existing chain of iaxc_sounds (lifo) pa_play_sound () - sound->next = sounds; sounds = sound; 2. if there is BUFFER OVERFLOW subsequent iaxc_sound{} data seems to be discarded pa_mix_sounds () - if ( *sp ) /* don't advance if we removed this member */ sp = &((*sp)->next); what should happen in this case? steve |