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);