Fangames > Programming Questions

Music pauses before loop

(1/2) > >>

Hectorpaddy:
So, Para was playing my game and there was a weird bug.
Before the music loops it stays silent for a few minutes, when Hiddow played an earlier version this didn't happen. I'm using the same code as always being
if !sound_isplaying(track01) { sound_loop(track01); }
I doubt it is to the code because if I just play the sound from the game maker file it makes this pause as well.
There is no emptiness at the end of the sound file or something. I also tried changing up the sound file and making a new soundfile in game maker, both didn't help. I also tried exporting the soundfile from gamemaker.

I hope you can help me.

Sephalos:
I saw that and I have no idea what could cause that. Can you test it with another song maybe to see if that other song does the same thing?

Try some stuff out and try to isolate where the problem is coming from.

Hectorpaddy:

--- Quote from: Sephalos on September 29, 2013, 09:18:17 PM ---I saw that and I have no idea what could cause that. Can you test it with another song maybe to see if that other song does the same thing?

Try some stuff out and try to isolate where the problem is coming from.

--- End quote ---
Tried, didn't work.

Olivebates:
Do you have a legit copy of Game Maker? In which case, you could contact customer support about it. It sounds like it is most likely a bug in the matrix of your version of Game Maker.

Zero-G:
so i was playing your game today and i also got the same problem like para.it stopped after the ending(sometimes earlier around 1:50) and it didnt wanted to restart .only on random times.so i opened your game put object: playMusic in every room and deleted  { } < these in "if !sound_isplaying(track01) { sound_loop(track01); }"<irrelevant

now the music still dont loops but it restarts after pressing r.but that is still gay so i tested a 54 second song and that looped and did what it should.

not really helpful post but better then nothing.its really weird since para and me got that problem like almost never .

last edit. i downloaded the exact same song with the same bitrate (128kBit/s) and it works. maybe the song broke while compiling or some shit.

Navigation

[0] Message Index

[#] Next page

Go to full version