SFML community forums

Help => Audio => Topic started by: StDH on December 14, 2014, 11:34:10 am

Title: sf::Music 'call initialize() first'
Post by: StDH 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.
Title: Re: sf::Music 'call initialize() first'
Post by: Laurent on December 14, 2014, 11:38:57 am
SFML doesn't support the MP3 format.
Title: Re: sf::Music 'call initialize() first'
Post by: StDH on December 14, 2014, 11:40:31 am
wow, really ? i thought it do.
Then, sorry for this Laurent.