i am trying to implement a small dialog to play any soundtrack from sc1, wc3 and sc2. this works perfectly fine so far. now i would like to add a "next track" button but there is no way to get the currently playing soundtrack with the current index of the file playing, is there? or how would i keep track of the index? any other ideas?
I'm not sure, but a workaround might be to simply have one soundtrack for each track and simply use "Play soundtrack" when the dialog is pushed. Also, you could choose "next soundtrack" under each soundtrack in the data editor so that it'll flow between each track automatically when they finish (I think this only work when you set the soundtrack to "not default" in the triggers when you play it).
- SoundWait(sound, 1, 1), will wait on the thread until the given sound has finished playing
- SoundLengthQuery(soundlink) + SoundQueryWait() + SoundLengthSync(soundlink) to give you the total length of a sound
When you play a sound, can you store whatever you played in a variable?
There is SoundLastPlayed(), I don't know if that only covers sounds that you trigger or all unit sounds and such as well.
There is SoundLastPlayed(), I don't know if that only covers sounds that you trigger or all unit sounds and such as well.
is this only Galaxy? cannot find it in GUI. what type is it (gamelink - sound; soundlink)?
nvm found it, but it won't help me since it's not player dependent
- SoundWait(sound, 1, 1), will wait on the thread until the given sound has finished playing - SoundLengthQuery(soundlink) + SoundQueryWait() + SoundLengthSync(soundlink) to give you the total length of a sound
i could use that to build my own sound library if everything fails.
hello there,
i am trying to implement a small dialog to play any soundtrack from sc1, wc3 and sc2. this works perfectly fine so far. now i would like to add a "next track" button but there is no way to get the currently playing soundtrack with the current index of the file playing, is there? or how would i keep track of the index? any other ideas?
I'm not sure, but a workaround might be to simply have one soundtrack for each track and simply use "Play soundtrack" when the dialog is pushed. Also, you could choose "next soundtrack" under each soundtrack in the data editor so that it'll flow between each track automatically when they finish (I think this only work when you set the soundtrack to "not default" in the triggers when you play it).
- SoundWait(sound, 1, 1), will wait on the thread until the given sound has finished playing - SoundLengthQuery(soundlink) + SoundQueryWait() + SoundLengthSync(soundlink) to give you the total length of a sound
When you play a sound, can you store whatever you played in a variable?
There is SoundLastPlayed(), I don't know if that only covers sounds that you trigger or all unit sounds and such as well.
if you play a random soundfile from a soundtrack then no since there seem to be no way to get the current index.
is this only Galaxy? cannot find it in GUI. what type is it (gamelink - sound; soundlink)?
nvm found it, but it won't help me since it's not player dependent
i could use that to build my own sound library if everything fails.