The "Music in channel is playing" condition doesn't seem to be working properly

Hello!

I’m not 100% sure if it’s a bug, but i didn’t find information about this in Gdevelop Wiki: Audio - GDevelop documentation
Sounds and music Reference - GDevelop documentation

I’m trying to change the offset of my music in the beginning of my music.

I did my tests:

  • Using a free song, mp3 file, 4,7mb, 2:32
  • Using Preload as music in resources
  • Previewing from another scene, preloading all the scene that have the music and changing for the scene with the music

So, the results with different conditions:

  1. If i try to change in the beginning of the scene it doesn’t works:

  2. If i try to change using a separated event with the condition “A music file is being played”, it doesn’t works too:

  3. If i try to change using a timer, it’s has an interesting result. With a very lower timer it does nothing:

  4. But with a higher number it works:

The conclusion I came is that the music even with the “preload as music” checked in the resources does not start in the first frame. So, when the offset action occurs, it does not influence the song that has not yet started.

The problem is that if my explanation is true, the condition “Music on the channel is being played” should solve this problem, right?

Here the file with the project to test like I did: Proton Drive

Thanks!

Hi @Rasterisko!

I am not sure but it’s possible there is (are) perhaps issue(s) with sound canal reading.
In my game in progress, i use different canal by types of actors, with unique number, according to these last.
And well, i constated sounds randomly problems and not always à the same place and time (some sound can be repeated)
So and i have perhaps not understood, we must too sometimes use actions for music (while we wish sounds) and in other cases, actions for sound.

Strange, no!

Xierra

Hello, Amigo54!

I think we’re talking about different problems. My report is specifically about the condition “Music in channel is playing”.

In building my game I also use channels and I haven’t experienced any problems with that. The sounds have works perfectly! (and I have a lot of sounds working together!)

I think this part in Gdevelop Wiki can help you! Look: