playlooped won't stop
So I was using playlooped() and I noticed that if I did stopmusic() it didn't always stop the music. Actually sometimes I could hear multiple songs playing at once. Does anyone have any ideas how to get songs to stop?
|
can you not index them by doing playlooped(1) and stopmusic(1) :0?
|
What format are the music files?
Wav are treated as sound effects and are therefore unaffected by stopmusic(), for those you would have to use stopsound("filename");. |
Quote:
Quote:
|
Quote:
|
Quote:
PHP Code:
|
It looks as if getmusicfilename() may be acting faulty. You could try out-putting it's value for debugging to see if it's somehow being reset, and if necessary store the current playing song in a variable instead.
I actually use stopmidi() even though it's supposedly the same function as stopmusic() and kept just for compatibility purposes, does this work better? Also while this is not the problem here player.level is an object, to compare it with a string it's better to use "player.level.name". |
Quote:
As for the player.level being an object. I knew I should have been using player.level.name.. but I guess I never thought of player.level as an actual object itself, thats neat. I'll change that right away but still looking for ideas on the music. Would love to test out on PC to see if it's maybe a mac bug or for everyone. Also, I am very disappointed that midi no longer work with graal.. they were so awesome :( |
All times are GMT +2. The time now is 08:37 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.