SDL info update & Sound paradigms

David Sowsy dsowsy at cs.uml.edu
Tue May 5 08:16:00 PDT 1998



> The BeOS SDL code is broken, until I install BeIntel.
 
> For example, on BeOS, I can keep a separate set of "DMA" buffers, made
> available to the application, and each time the OS passes SDL a set of
> buffers to fill, I can copy the virtual DMA buffers to them and update
> the DMA read pointer.  Of course, this will result in a duplicate copy
> of the sound buffers.
There was a BeDevNews article on mixing audio (not sure if it was MIDI and
AIFF's or what) as well as associated source available on Be's web site. 
 
> The alternative is to write code that mixes the audio directly, based
> on the state of the application, at the time the audio driver requests
> it, instead of mixing the next frame or two every update.

As of late I've using a BSynth and BSynthMidiFile system where it sends
off its own thread and I let that go before the video display kicks in
(for my current game). 

Best Regards,
		David





More information about the SDL mailing list