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 - Mr. Yes

Pages: [1]
1
Audio / SetPlayingOffset: interesting bug!
« on: December 10, 2011, 02:06:24 am »
Beautiful! Works perfectly.

2
Audio / SetPlayingOffset: interesting bug!
« on: December 07, 2011, 10:22:12 pm »

3
Audio / SetPlayingOffset: interesting bug!
« on: December 07, 2011, 07:24:59 pm »
It definitely isn't a GetPlayingOffset problem - that still works fine. This only occurs after using SetPlayingOffset.

Anyway, thanks for the speedy reply! However, I've been using the latest SFML 2.0 snapshot as of November 6th. How recently was this fixed?

4
Audio / SetPlayingOffset: interesting bug!
« on: December 07, 2011, 07:12:56 am »
Unfortunately, the same thing. Changing the order doesn't seem to make a difference.

5
Audio / SetPlayingOffset: interesting bug!
« on: December 07, 2011, 03:46:06 am »
Hello!

I've come upon what I believe to be somewhat of a glitch, here. Please correct me if I'm doing something wrong, but there appears to be a point wherein SetPlayingOffset causes SFML to stream an incorrect part of the audio file.

Code: [Select]

#include <SFML/Audio.hpp>

int main()
{
    sf::Music music;
    music.OpenFromFile("song.ogg");
    music.Play();
    music.SetPlayingOffset(97392);
    while (music.GetStatus() == sf::Music::Playing){}
   
    return 0;
}


I tested this short snippet with a file that contains one second of white noise at the very beginning and 199 seconds of silence. When run (for me), this program will immediately play the white noise.

That number, 97392, is interesting - any lower and it sets the offset correctly and the white noise does not play. I believe there are several other points later in the file that cause this odd behavior as well.

Again, I may be doing something stupid here. Let me know!

6
Graphics / Failed to load image
« on: December 30, 2008, 01:24:55 am »
Quote from: "dorkfish"
If you show us the relevant portion of your code, we might be able to come up with a solution.

As he mentioned, he attempted to compile the source code on the site as well. So, you could in fact visit this page here to find the relevant portion of the code. Since this is apparently a problem with loading images, that relevant portion would be this:

Code: [Select]
// Load the sprite image from a file
sf::Image Image;
if (!Image.LoadFromFile("sprite.tga"))
    return EXIT_FAILURE;


(I'm the friend he mentioned in the first post, by the way)

Pages: [1]