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

Author Topic: [SOLVED]Displaying Music info  (Read 1880 times)

0 Members and 1 Guest are viewing this topic.

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
[SOLVED]Displaying Music info
« 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?
« Last Edit: November 16, 2013, 02:48:03 pm by The illusionist mirage »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Displaying Music info
« Reply #1 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.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: Displaying Music info
« Reply #2 on: November 16, 2013, 02:44:39 pm »
Yea, I was talking about the data that comes with the file. Thanks now I understand.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: [SOLVED]Displaying Music info
« Reply #3 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: [SOLVED]Displaying Music info
« Reply #4 on: November 16, 2013, 04:14:32 pm »
Thanks! :)

 

anything