check for valid audio file

This forum is about all development around libVLC.
pfass
New Cone
New Cone
Posts: 1
Joined: 09 Jul 2015 23:34

check for valid audio file

Postby pfass » 09 Jul 2015 23:44

Hello. I am writing a program to go though my music folder and read the mp3 tags from the audio files. But there are also non audio files in the folders like the album art. I was wondering if there is a valid audio check when loading libvlc_media_new_path with a non audio file so I don't have to have a list of valid audio file extensions and check every file against the list.

Thank you for tour time

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: check for valid audio file

Postby Jean-Baptiste Kempf » 10 Jul 2015 11:58

You can check the number of tracks in it.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests