On Wed, 2007-11-28 at 23:56 +0100, Lars Luthman wrote:
> Event_Port_Buffer* buf = ports[EVENT_PORT];
> uint32_t index;
= 0;
> uint32_t next_frame;
> uint32_t frames_done = 0
> while (index < buf->used_size) {
> next_frame = events[index].timestamp >> 16;
> render_audio(frames_done, next_frame);
> frames_done = next_frame;
> handle_event(events[index]);
> index += 1 + (events[index].size - 8) / 16;
> }
> render_audio(frames_done, nframes);
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
This archive was generated by hypermail 2.1.8 : Thu Nov 29 2007 - 04:15:03 EET