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.


Topics - Jesse

Pages: [1]
1
Feature requests / Window rendering and event processing in Windows
« on: March 08, 2009, 01:39:55 am »
Currently, if you create a windowed SFML application in Windows (XP - haven't tried Vista), and then drag the window partway off of and then back onto the screen, you get a 'smearing' visual artifact due to the window not updating until the mouse button is released.

Most of the other cross-platform libraries I've tried (SDL, GLFW, etc.) have the same behavior. I've looked into the issue a bit, and unfortunately, it doesn't look like it's entirely trivial to solve, and I imagine fixing this behavior in SFML would probably require significant restructuring of the windowing and events system.

Nevertheless, I thought I'd throw it out there. I've been wrestling with this issue (my project currently uses SDL), and will probably end up re-writing the app to use the native Windows API in order to work around it. In some contexts this 'smearing' probably isn't that big a deal, but for other applications, having the window continue to render correctly as it's moved around the screen can be important.

(This issue may already be in the roadmap, but if so I didn't spot it. Also, if there's a way to work around this problem in SFML, I'd be interested to know about it.)

2
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]
anything