Looping Music

This forum is currently in read-only mode.
From the Asset Store
6 looping tracks to use in your games and projects. These tracks are in the style of the 1960s detective movie genre.
  • Is there any way to loop music without that awful pause? I've gotten a lot of complaints on it and..well..it seems there's nothing I can do about it. It took my friend a while to make these tunes and now I can't even play them properly.

    I'm using "play music from resource." I tried loading them externally, which I think fixed the pause, but I'm using magicam so the music completely stopped during room transitions. Un-checking "Time-Scale Audio" surprisingly didn't fix it.

    Any ideas?

  • Is the pause coming from the music itself (ie it stops and starts again), or was the song made as a loop?

    I haven't used music a whole lot, but the few times I did, playing a .wav file from a channel set to loop produced no noticeable pauses. Then again, I'm not sure if that was because of Construct or how the song was.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • All of the songs were designed to loop, and they loop perfectly in my media player.

    I haven't used music a whole lot, but the few times I did, playing a .wav file from a channel set to loop produced no noticeable pauses. Then again, I'm not sure if that was because of Construct or how the song was.

    Likewise. From what I recall the music looped just fine, but again, magicam (during room transitions) stops music on a reserved channel like that so I'll have to find another way..or talk to Linkman about it..hm.

  • In your first post you said that you are using "play music from resource", in your second you talk about magicam stopping music "on a reserved channel". XAudio2 knows music and sound - music is played directly (and parallel to the sound channels) and sound can be played on channels. And only for the latter you may reserve channels. Also, music is never chached, while you have full control over caching sound. If it is music you are using, then it might be that room transitions block access to the harddisc and because of music not being cached, it can't be played during that time.

    I assume you're using exactly one XAudio-object set to "global". Try playing the loops as wav via channels and set a high cache value plus using "cache file" or "cache directory". Other than that, there is only the way of fixing (if it is a bug) magicam.

  • I've never used the camera plugin beyond watching the demo. So this is sortof a shot in the dark, I recall seeing a demo for camera room transitions like old LOZ(I think it was from the plugin). This might have been accomplished with a momentary pause of the timer which would freeze everything happening pretty much. Try manually setting system timescale to the normal rate at evry tick. If my guess is correct, and the plugin is designed to affect timescaling at the beginning of the tick it might fix it, at the expense of making the room transition slightly less cool

  • In your first post you said that you are using "play music from resource", in your second you talk about magicam stopping music "on a reserved channel". XAudio2 knows music and sound - music is played directly (and parallel to the sound channels) and sound can be played on channels. And only for the latter you may reserve channels. Also, music is never chached, while you have full control over caching sound. If it is music you are using, then it might be that room transitions block access to the harddisc and because of music not being cached, it can't be played during that time.

    I assume you're using exactly one XAudio-object set to "global". Try playing the loops as wav via channels and set a high cache value plus using "cache file" or "cache directory". Other than that, there is only the way of fixing (if it is a bug) magicam.

    Sorry, as always I could have been a little more clear -w-;

    What I meant was I used to play music by doing exactly what you mentioned above, but that caused Magicam to pause the music during transitions. Due to this, I resorted to using "Play Music From Resource". That fixed the transition problem, but now there's a pause between loops. But yes, I think the only way to fix this is through Magicam. I've contacted Linkman so we'll see if something can be done.

    Edit: Actually, Lucid, your idea works...for the most part I'll have to mess with it a bit but I think it'll do.

  • What audio format are you using? Mp3 doesn't work good with looping. Ogg is much more suited to it.

  • Like InkBot says, avoid using MP3 and use Ogg instead.

    I have several pieces of music that loop throughout my game, and there's no sign of any pauses, clicks or pops when looping (using Ogg).

    Krush.

  • .ogg files don't work when using "play music from resource" or "autoplay resource", which is what I have to use to get magicam to not stop the music during transitions. Otherwise, Lucid's idea gets the music to keep playing during transitions, but in turn breaks the transition..so..Just waiting to hear from Linkman.

  • Are some new informations about play musicloop without pause? i´m also interested in this.

  • Bump.

  • This thread is 4 years old. Do yourself a favor and move on to C2

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)