Page 1 of 1

check for valid audio file

Posted: 09 Jul 2015 23:44
by pfass
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

Re: check for valid audio file

Posted: 10 Jul 2015 11:58
by Jean-Baptiste Kempf
You can check the number of tracks in it.