MP3's cut out

Monkey Targets Forums/Flash/MP3's cut out

svero(Posted 2014) [#1]
I'm playing music via mp3 and also sound effects. One sound effect plays on a channel reserved just for this one looping sound.

The other effects in the game should rotate through a few channels reserved for rotating quick effects. (like pickup sounds, and various other short effects)

All of the shorter sound effects play, but cut out almost immediately, so I only hear the start of them. It's almost as though in flash they aren't rotating through the channels.

All this works well in html5, and with the desktop build (though it uses wav versions).

Any suggestions?


programmer(Posted 2014) [#2]
Demo?


svero(Posted 2014) [#3]
I'm not ready to post a public copy of the game yet. Do you know of any reason why several mp3's would not play together or mp3 files would be cut short using the flash target?


svero(Posted 2014) [#4]
Ok. I solved this problem for myself. It was not code related. Seems that certain encodings of MP3 don't play nice with flash. I reencoded the mp3 files using a different encoder, and they play correctly now.