RE: Streaming WAVE audio
Brian Hook <[email protected]>
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <2004714103727.932470@GATEWAY> |
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 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Gamedevlists-windows mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5