SFML community forums

Help => General => Topic started by: The Illusionist Mirage on November 16, 2013, 02:34:39 pm

Title: [SOLVED]Displaying Music info
Post by: The Illusionist Mirage on November 16, 2013, 02:34:39 pm
Hello

Suppose I want to create a simple audio player using SFML, is it possible to display audio info like artist, album, year, etc. as with Windows Media player or others?

Thanks

EDIT:
Are Mp3 files also supported in SFML? And can you please tell all the formats supported?
Title: Re: Displaying Music info
Post by: zsbzsb on November 16, 2013, 02:43:21 pm
Yes you can display the information, just use sf::Font and sf::Text  ;)

On a more serious note, if you are talking about reading the meta tag information from the audio files you will need to find something other than SFML to read that. Either another library or OS specific code.
Title: Re: Displaying Music info
Post by: The Illusionist Mirage on November 16, 2013, 02:44:39 pm
Yea, I was talking about the data that comes with the file. Thanks now I understand.
Title: Re: [SOLVED]Displaying Music info
Post by: eXpl0it3r on November 16, 2013, 03:16:32 pm
Are Mp3 files also supported in SFML? And can you please tell all the formats supported?
Mp3 is not supported as stated in the tutorial. All the other formats can be found in the documentation. ;)
Title: Re: [SOLVED]Displaying Music info
Post by: The Illusionist Mirage on November 16, 2013, 04:14:32 pm
Thanks! :)