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

Author Topic: Problem loading audio file from sf::InputStream  (Read 3107 times)

0 Members and 1 Guest are viewing this topic.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Problem loading audio file from sf::InputStream
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem loading audio file from sf::InputStream
« Reply #1 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?
Laurent Gomila - SFML developer