SFML community forums

Help => Audio => Topic started by: Grimshaw on February 09, 2012, 02:08:11 pm

Title: Problem loading audio file from sf::InputStream
Post by: Grimshaw on February 09, 2012, 02:08:11 pm
Hello,

I've got a problem with sf::InputStream.

I have a sound file which I can load and play normally, then I insert it into a package of files, try to load it again from the package with sf::InputStream and the sound plays but makes a huge noise 1-2 seconds before playing.

Tried to dump the file outside the package again, and it plays nice both in sfml and external players.

What could it be?
Title: Problem loading audio file from sf::InputStream
Post by: Laurent on February 09, 2012, 02:22:19 pm
Quote
I have a sound file which I can load

sf::SoundBuffer or sf::Music?

Have you tried your package system with other types of resources, such as images?