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

Author Topic: sf::Music 'call initialize() first'  (Read 3353 times)

0 Members and 1 Guest are viewing this topic.

StDH

  • Jr. Member
  • **
  • Posts: 56
  • {⛺.⛺}
    • View Profile
    • Worst ever ^^
sf::Music 'call initialize() first'
« on: December 14, 2014, 11:34:10 am »
Visual Studio 2013
SFML, current source from GitHub. (using release build)

Minimal Example:
int main()
{
        sf::Music m_music;

        if (m_music.openFromFile("login.mp3"))
                return -1;

        m_music.play();

        return 0;
}

Failed to open sound file "login.mp3" (File contains data in an unknown format.)
Failed to play audio stream: sound parameters have not been initialized (call initialize() first)


No matter what i do, it appears always.
I've even tried using audacity to export .mp3 file but it shows on any .mp3 i used.

Last time i used this module was about one year ago.
« Last Edit: December 14, 2014, 11:36:57 am by StDH »
<StDH> Imagine a girl writing you this: My farts smell good
<Slipxy> married.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: sf::Music 'call initialize() first'
« Reply #1 on: December 14, 2014, 11:38:57 am »
SFML doesn't support the MP3 format.
Laurent Gomila - SFML developer

StDH

  • Jr. Member
  • **
  • Posts: 56
  • {⛺.⛺}
    • View Profile
    • Worst ever ^^
Re: sf::Music 'call initialize() first'
« Reply #2 on: December 14, 2014, 11:40:31 am »
wow, really ? i thought it do.
Then, sorry for this Laurent.
<StDH> Imagine a girl writing you this: My farts smell good
<Slipxy> married.