Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jesse

Pages: 1 [2]
16
Audio / Seamless music looping
« on: February 19, 2009, 07:40:41 pm »
Hello,

I've been using SDL_mixer for sound, and am looking for a replacement due to the fact that SDL_mixer is unable to loop streamed .ogg files seamlessly.

My understanding is that it's more or less impossible to loop .mp3 files seamlessly due to the way they're encoded, but as far as I can tell, .ogg files don't have this limitation (BASS and FMOD are both able to loop .ogg files with no problem).

I've tried SFML's basic music playback functions (and looked through the forums here for relevant information), and it appears that SFML has the same problem as SDL_mixer in this regard. However, I also see that SFML has a 'stream' base class, which I'm guessing might allow the looping behavior to be customized.

So, I have a couple of questions:

1. Would it be possible to implement seamless streamed .ogg looping using the 'stream' class? Has anyone had any luck doing this?

2. Can SDL and SFML run concurrently? That is, would there be any problem with using SDL for video and input, while using SFML for audio?

Thanks,
Jesse

(SFML looks like a great library, by the way :)

Pages: 1 [2]