|
Post by u9 on Jul 13, 2007 9:14:25 GMT -5
Is it possible to have more then 1 MP3 file in memory at a time?
|
|
|
Post by u9 on Jul 13, 2007 10:06:46 GMT -5
Never mind, MP3 isn't suited for music loops anyway. But how about being able to repeat OGG files? that would be a helpful feature.
Ah, and also, is it possible to have several ogg files in memory? I want to be able to switch between music loops inside the game, so i can't imagine that i can load the new music while the game is running, haven't tried though.
|
|
|
Post by Guilect on Jul 13, 2007 11:52:16 GMT -5
For repeating ogg\'s: the example that comes with B2D shows how to do this currently:
do while bRunning = True if key.pressed(1) or key.pressed(0) = True then bRunning = False system.processMessages \' allows windows to do stuff Music.OggUpdate \' grab the next bit of the song (streaming) if Music.OggPlaying() = false then Music.OggPlay(\"FREE_POP_0001_A.ogg\") loop
I can look into having this be a more automatic setting.
As far as multiple MP3s or multiple oggs ; not sure. will investigate.
|
|
|
Post by u9 on Jul 20, 2007 18:21:36 GMT -5
Using the code above i get a huge glitch when the music loops because OggPlaying() will only return false once the music has completed, i.e. stopped playing. After that, the OggPlay() command needs to reload the music which takes relatively long time, hence the glitch. This makes it impossible to use ogg files for playing back music in my game.
|
|