Sound Question
by Harry Durnan · in Torque Game Builder · 10/10/2011 (5:34 pm) · 0 replies
Hi,
Working on adding some music to a game, and I was wondering if there was a way to get which profile a returned handle is assosciated with? Basically, I want to occasionally switch songs depending on what menu is open, and I was wondering if there was a quick way to figure out what was playing without manually saving it off into yet another global variable?
So, initially the sound is being started with:
$musicHandle = alxPlay(townMusic);
Is there any way to reference the $musicHandle to pull back that it is playing townMusic already? Digging through the TDN I found the alxGetSourcef function, but there's very little documentation that I could find about what you can actually get back from it. Anyone have any ideas?
Thanks,
Harry
Working on adding some music to a game, and I was wondering if there was a way to get which profile a returned handle is assosciated with? Basically, I want to occasionally switch songs depending on what menu is open, and I was wondering if there was a quick way to figure out what was playing without manually saving it off into yet another global variable?
So, initially the sound is being started with:
$musicHandle = alxPlay(townMusic);
Is there any way to reference the $musicHandle to pull back that it is playing townMusic already? Digging through the TDN I found the alxGetSourcef function, but there's very little documentation that I could find about what you can actually get back from it. Anyone have any ideas?
Thanks,
Harry
About the author
Author of It's A Wipe! (http://www.iawgame.com :)