• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

GMS 2.3+ How to avoid click when pausing audio

ClairDeLune

Member
Hi!
I'm having some trouble, every time a pause an audio file, most of the time a music,

when a room switch occurs and the track pause with audio_pause_sound, there is a click. (Video example).

I have a simple "oMusic" object that handles every music's during the game.

Example that appear in the video:

In step event of oMusic:

GML:
if (room = rm_Town_Forest01){

  

    if (!audio_is_playing(snd_forestTown_90)){

    audio_play_sound(snd_forestTown_90,100,true)

    }

    audio_resume_sound(snd_forestTown_90)

}



if (room = rm_Town_Forest01_House01){

  

    audio_pause_sound(snd_forestTown_90)

}
Anyone know how to avoid this click?

Also, I use 24 bit wav files for the music and compressed Not Streamed option, maybe it's change something.

Thanks for your help!
 
Top