You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote this a while back and it worked until recently when I moved it to a new file. This is how the sounds are added to each group: for (i in 0...PlayState.DRUM_MAX_VALUE + 1) drumSounds.add(Reflect.field(this, 'drum$i'));
I then have a function where to stop all the sounds
function stopAllSounds() {
trace("stopping All sounds");
for (drumRiff in drumSounds.sounds) {
drumRiff .stop();
}
for (gtrARiff in gtrASounds.sounds) {
gtrARiff.stop();
}
for (gtrBRiff in gtrBSounds.sounds) {
gtrBRiff.stop();
}
for (bassRiff in bassSounds.sounds) {
bassRiff.stop();
}
for (sound in voiceLines.sounds) {
sound.stop();
}
}
The sounds play correctly just fine but stopping them doesn't work, I've tried to trace a specific sound from the group to see if its playing and compare it to the trace from directly and they don't line up so I'm guessing it's the way the sounds are being added.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I wrote this a while back and it worked until recently when I moved it to a new file. This is how the sounds are added to each group:
for (i in 0...PlayState.DRUM_MAX_VALUE + 1) drumSounds.add(Reflect.field(this, 'drum$i'));I then have a function where to stop all the sounds
The sounds play correctly just fine but stopping them doesn't work, I've tried to trace a specific sound from the group to see if its playing and compare it to the trace from directly and they don't line up so I'm guessing it's the way the sounds are being added.
All reactions