RE: [GD-Windows] Streaming WAVE audio
Brought to you by:
vexxed72
From: Brian H. <ho...@bo...> - 2004-07-14 14:37:47
|
As it turns out I ended up going with many multiple small buffers and using an event to do the mixing, which is the ickiest way (the old method was really elegant -- sleep/wake/read position/write/sleep). The granularity for notifications absolutely sucks. I'll get signaled and sometimes find 0, 1, or N buffers waiting to be filled. I ended up going with 8 small buffers instead of 1 large buffer, and now it seems reasonably robust but I can't get my latency much below 50ms (if that) without having it crackle, whereas with my old code I think I could go below 40ms (since it wasn't dependent on being signaled by the sound backend). Thanks, Brian |