Re: The program for playing audio files by the key
Do not use threading for this. Just... no. Not sure where you thought that was a good idea, but it will be a waste of CPU cycles, CPU time and system resources. Audio playback (inn any good audio library and in any good OS-level audio subsystem) is asynchronous. As such, creating a thread here would be pointless. Furthermore, introducing threading to something like this will require you to *actually* learn how multithreading works and how to use it properly. That is difficult to grasp properly in a language like Python where semaphores, mutexes andsuch don't exist. Plus, multithreading is difficult either way; even expert programmers get it wrong. No one willget itright the first time, and it brings a ton of complexity and extra debugging time to the table. If you really do need it, use it, but I'd either use Cython or not use Python at all.
I significantly doubt BASS supports playback to multiple devices. I know FMOD does (though you'll wantdifferent systems for each device).
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector