Queued music skipping (SOLVED)

Started by Barbarossa, Thu 03/03/2005 02:30:26

Previous topic - Next topic

Barbarossa

I'm using the following script to build a playlist of music tracks, as described in the manual:

SetMusicRepeat(0);
PlayMusic(3);
PlayMusicQueued(11);
PlayMusicQueued(10);
PlayMusicQueued(4);
PlayMusicQueued(5);
PlayMusicQueued(6);
PlayMusicQueued(7);
PlayMusicQueued(8 ); [had to put extra space before close bracket to stop this appearing as a smiley in the post - extra space is not in script]
PlayMusicQueued(9);

The problem is that every second track only plays for about one second (no exaggeration) before skipping to the next one. The alternate tracks play fine. So, I get the whole of music3, then one second of music11, then the whole of music10, one second of music4 and so on.
I've tried rebuilding the VOX files, to no avail. Am I doing something wrong?

strazer

Are you sure it's not the music files themselves? What format are they?

Try moving the PlayMusicQueued functions around to see if it's always the same tracks causing the problem.

Barbarossa

Thanks for the advice, Strazer. I tried putting the music into a different order, so that music11 was first, then 3, then 10. Now music11 (which previously only played in a 1-second burst) plays fine, music 3 (which previously played fine) plays a 1-second burst, and then music10 plays fine.  So it seems like it depends on the position in the playlist, with every second track skipping after just one second of play.

The music files were all mp3s before being combined in the VOX, all the originals are still in the game directory under their proper names, eg music2.mp3 . Every one of them plays fine if it is played in the game on its own, not as part of the playlist.

I can't imagine what is going wrong here  ???
Any help very much appreciated

Pumaman

Hmm, what is your music crossfading setting? If you try disabling crossfading, does it fix the problem?

Barbarossa

Yep, that solved it. I didn't realise crossfading would have that effect when music was queued.
Since crossfading is quite important for other parts of my soundtrack (and you can't turn it on and off during the game, so far as I can see), I guess I'll cut my playlist down to about 5 items and stick a blank track between each one.
Thanks for your suggestions!

strazer_away

You can change the crossfading setting at run-time using the SetGameOption function.

But this sounds more like a bug to me.
Can you elaborate on the format of the mp3 files, what bitrate, constant or variable bitrate?
Are they all from the same source? If yes, have you tried other mp3 files?

Pumaman

#6
I've looked into this and can confirm it's a bug in AGS -- I'll get it fixed for the next version.

Edit by strazer:

Fixed in AGS v2.7 RC2

SMF spam blocked by CleanTalk