![]() |
|
![]() |
#1 |
Member
Join Date: Sep 2007
Posts: 2
|
![]()
I use the follow method to identify a MPC audio file
// MPC identifying characters MPC or MP+ (older version) if ((s[0] == 'M' && s[1] == 'P' && s[2] == '+') || (s[0] == 'M' && s[1] == 'P' && s[2] == 'C')) inputformat = InputFormat.MPC; and use this method to identify APE file: // APE identifying characters Hex: 4D 41 43 20 (ASCII: MAC) if ((s[0] == 'M' && s[1] == 'A' && s[2] == 'C') ) inputformat = InputFormat.APE; Please confirm if there's any problem with such soltuions? Thanks! |
![]() |
![]() |
![]() |
#2 |
Veteran Member
|
![]()
I believe it's much more reliable to use the file header instead of file name extension.
~ |
![]() |
![]() |
![]() |
#3 | |
Member
Join Date: Sep 2007
Posts: 2
|
![]() Quote:
By the way, .MFC and .APE are the only file extensions for these two types of audio files? Is there any others? |
|
![]() |
![]() |
![]() |
#4 |
Musepack developer
Join Date: Sep 2006
Location: Villeurbanne - France
Posts: 36
|
![]()
as you can see here :
http://trac.musepack.net/trac/wiki/SV8Specification the new musepack file format starts with 'MPCK' and from here : http://trac.musepack.net/trac/wiki/SV7Specification musepack files start with 'MP+' and not 'MPC' Nicolas |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|