Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 16th September 2002, 21:31   #1
Blobby66
Junior Member
 
Join Date: Sep 2001
Posts: 39
Valid MP3 or not

Does anyone know how to test if an mp3 file is a REAL mp3 file and not just a renamed text file or something? My app hangs when it tries to play a test file disguised as a .mp3 file and i need to trap this.
Ive tried reading the .TAG of the mp3 file but even valid mp3 files dont contain the .tag of "TAG". Must be something i can check for before initiating playback. Thanks for any feed PS. Im using VB but as long as the principle works i can adapt it. Ta
Blobby66 is offline   Reply With Quote
Old 1st October 2002, 15:32   #2
Cheesy
Junior Member
 
Join Date: Oct 2002
Location: UK
Posts: 15
Send a message via ICQ to Cheesy
I'd guess you'd need to look at the Mp3's header and make sure it isn't corrupted, search google for "mp3 header format" for an idea of how mp3s headers work. Here's a link to my google search

Search Google for "Mp3 Header Format" Here
Cheesy is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump