It's probably a job for Game Maker, not the DLL. It's quite simple to achieve this and I'll probably make a script that does this soon enough (unless someone does it first.. :D ).
Any chance that will be implemented a system that returns a unique ID each time the same sound is played? (so that positional audio can be achieved by panning each specific sound instance)
Well, I'm already faking 2D positional audio via scripts. Is there a way to do this with the DLL as well, without allocating/reloading the same file for each instance of the same sound? (thus, without creating 2 different emitters?)
Anyway, I finally got the error that was -seldom, and very randomly- making the DLL crash.
Note that I'm using the DLL only for background music. That is, I play a track at the start of the level, and stop it at the end. No other operations are being done with the DLL in the meanwhile.
this error has been thrown in the mid of a level, after a few loops of the track.Note:
This does NOT make the game crash, but the music stops abruptly.
Sorry for the screenshot, but using WIN+TAB was the only way to be able to read something.
Can this be of help?EDIT:
Happened again, but after clicking OK on 3 dialog boxes like this that appeared asynchronously in respect of the game, one immediately after the other (that is, I was able to play, but without the music), the music started to loop again.
Edited by Hiric, 29 February 2012 - 10:20 PM.