Fireplace sound problem

Hello guys I need your help with my fireplace.
So I've made one and it works perfectly, later I decided to add also a sparking sound when the fireplace is on, the problem is when I turn off the fire the sound doesn't want to turn off, I tried a few tricks but nothing has been worked so far.
Any advice?
First question: how do you play that sound?
One thing that have on my mind is that you play that sound on parallel event and you not properly toggle between switch / self switch or variable.
First question: how do you play that sound?
One thing that have on my mind is that you play that sound on parallel event and you not properly toggle between switch / self switch or variable.
I sent you the event, it's in Italian but I will translate it quickly
page1:
Text: "turn on the fireplace"?
choice:"yes" "no"
if yes:
text:"fire"
show animation: fire
reproduce sound SE "fireplace"
automatic switch A on.

Page2 is the same just change the animation and the automatic switch goes off.
I tried to remove the SE sound in page 2 but it didn't work
On the second page, where you turn off fireplace add command Stop SE, https://prnt.sc/wjtxp3
Besides, I would do the fire place different way:
1 - create separate event to basic control of fireplace (page 1: https://prnt.sc/wju039 , page 2: https://prnt.sc/wju0t8

2 - create separate, parallel event for actual playing that sound - 1st page, 2nd page
please note that I set varable "fireplace" greater or equal to 1, wich means whenever in previous event
variable is set to 0, sound won't play, but if set to 1, then sound will repeatedly play until you again turn off.

Another important thing is to add at the begining (or bottom) of that event wait method, because sound effect will be like saw in sawmill. (in my case it's 146, wich is actual lenght of my Sound Effect file), you can use this calculator to determine your delay.
On the second page, where you turn off fireplace add command Stop SE, https://prnt.sc/wjtxp3
Besides, I would do the fire place different way:
1 - create separate event to basic control of fireplace (page 1: https://prnt.sc/wju039 , page 2: https://prnt.sc/wju0t8

2 - create separate, parallel event for actual playing that sound - 1st page, 2nd page
please note that I set varable "fireplace" greater or equal to 1, wich means whenever in previous event
variable is set to 0, sound won't play, but if set to 1, then sound will repeatedly play until you again turn off.

Another important thing is to add at the begining (or bottom) of that event wait method, because sound effect will be like saw in sawmill. (in my case it's 146, wich is actual lenght of my Sound Effect file), you can use this calculator to determine your delay.
So I tried to do what you said but it didn't work then I tried to put another sound and now it's working, so I guess probably the problem is the fireplace sound that I chose but I don't know why. i
is it maybe because the sound is too long so I need to wait until the end before it stops playing?
Open that sound in Winamp or any other music player and tell me how long it is?
If it's longer than 45 seconds, then it should be placed in BGS folder instead SE and you should use (obviously) Play BGS and FadeOut BGS commands in event
Open that sound in Winamp or any other music player and tell me how long it is?
If it's longer than 45 seconds, then it should be placed in BGS folder instead SE and you should use (obviously) Play BGS and FadeOut BGS commands in event
Ok thanks so much it's working now, at the end the problem was the sound is too long so i moved it to BGS

Original thread: https://forums.rpgmakerweb.com/threads/fireplace-sound-problem.132017/