Unwanted sound when stopping audio.

Get help using Construct 2

Post » Thu Jun 12, 2014 6:13 pm

I'm having some issues with the audio feature. I want to have quite long sounds that will be stopped before they have been played to the end. Though when using the audio "stop" function I get a strange popping sound right when the sound is stopped. Is there any way to bypass it? This sound is not produced if changing the volume to -100 db for example. But as I want to stop the sound and just not mute it it would be nice if this was doable without getting distortions when stopping it.

Here is the file I've used for testing, press the red squares to play the sound: http://www.mediafire.com/download/0fkdb ... dTest.capx
B
8
S
3
G
2
Posts: 45
Reputation: 2,193

Post » Thu Jun 12, 2014 7:06 pm

I've tested you file by importing another sounds and stop them, and i think the weird stop because of the sounds type.
I can stop my sounds smoothly.
Test if you can fade the sounds before stop them.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Thu Jun 12, 2014 7:16 pm

Are you refering to the file format of the recordings? Because the recordings are "clean" without any distortions.
B
8
S
3
G
2
Posts: 45
Reputation: 2,193

Post » Thu Jun 12, 2014 8:09 pm

I'm talking about the original files.
Don't except that sounds will play on browsers the same as audio software's.
I have more than 50 sounds on my game and some times the sound loop perfectly in the audio software but in the Html 5 it's not looping seamless.

I've tried this event in your capx and it works fine :
On mouse released ----- set sound mute
--------------------------------- wait 0.1
-------------------------------- stop sound
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Thu Jun 12, 2014 8:16 pm

Alright. Well I'll probably go with just the 0.1 delay. Thank you for answering!
B
8
S
3
G
2
Posts: 45
Reputation: 2,193


Return to How do I....?

Who is online

Users browsing this forum: marcinkowski and 14 guests