[Scummvm-devel] Re: [Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.46,1.47

Lionel Ulmer lionel.ulmer at free.fr
Fri Aug 9 06:54:05 CEST 2002


On Fri, Aug 09, 2002 at 06:35:04AM -0700, Ruediger Hanke wrote:
> Modified Files:
> 	mixer.cpp 
> Log Message:
> Got rid of annoying blips and scratches on my system. It's just for
> MorphOS not to annoy Ender (see his comment in the source). Happens probably
> only here.

Well, you need to 'real_XXXXX' methods ONLY if you have a multi-threaded
application (ie a sound thread doing the mixing while a main thread sending
commands like creating / erasing mixers).

So a cleaner way to do that (instead of putting thing in MORPHOS #ifdef /
#endif) would be to find a way to somehow tell the mixer if it needs to run
in asynchronous mode (and thus do the delete in the thread context and not
when the delete function is called) or in synchronous mode.

                     Lionel

-- 
		 Lionel Ulmer - http://www.bbrox.org/




More information about the Scummvm-devel mailing list