lucadestudios team mailing list archive
-
lucadestudios team
-
Mailing list archive
-
Message #00005
Re: OpenAL sound system for LuceneStudios project
>
> And there's another point which needs to be considered: If we want to play
> sounds from different threads (eg collision sounds from the physics thread
> and other gamplay sounds for instance when the player fired his weapon from
> the main thread), we need to be sure that the sound system can handle that.
Hmm.. thread safety... what a joy :p
At this stage I don't believe we need to code for thread safety. The
physics thread doesn't need to know about the sound system (otherwise
we are tightly coupling..). So the physics system will need to be able
to notify objects in the main thread of collision events in a thread
safe way (perhaps using a message queue).
If a time comes when it makes sense for the sound API to be thread
safe, then we should do it.. but not yet ;)
>
> _______________________________________________
> Mailing list: https://launchpad.net/~lucadestudios
> Post to : lucadestudios@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~lucadestudios
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References