How to Handle Sounds in BGT
Hi, so I am making my way through the BGT tutorials, and I have been able to create a couple of my own modules, for handling speech, and menus, but I still don't have a good grasp on how BGT is handling sounds. I have looked at a couple examples of how the sound_pool class is used, and the documentation, but it still just doesn't feel right to me.
Perhaps different words and more examples will help.
Here is a couple questions that I have:
1. What is Preloading sounds mean? I have seen this on the forms a couple times, as well as in the documentation, but I am not sure if I fully get the purpose, and the application for this.
2. Is there a good way to load sounds without using global variables? I am a computer science major, and in all of my classes thus far have encourage avoiding using global variables because it is bad design?
3. What is the listener and source? In the play methods, the documentation talks about listener and source&nb
sp; positions, but it doesn't exactly explain anywhere I saw what these mean. I am guessing listener means the person playing the game, but I don't know about source.
TJ Breitenfeldt
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector