Add DSD file support
* add mimetype audio/x-dsd (.dsf/.dff) * add id3tag and fileinfo support (only .dsf)
This commit is contained in:
committed by
Justin Maggard
parent
ade51e9c94
commit
799e6cf505
10
metadata.c
10
metadata.c
@ -353,6 +353,16 @@ GetAudioMetadata(const char *path, const char *name)
|
||||
strcpy(type, "pcm");
|
||||
m.mime = strdup("audio/L16");
|
||||
}
|
||||
else if( ends_with(path, ".dsf") )
|
||||
{
|
||||
strcpy(type, "dsf");
|
||||
m.mime = strdup("audio/x-dsd");
|
||||
}
|
||||
else if( ends_with(path, ".dff") )
|
||||
{
|
||||
strcpy(type, "dff");
|
||||
m.mime = strdup("audio/x-dsd");
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINTF(E_WARN, L_METADATA, "Unhandled file extension on %s\n", path);
|
||||
|
Reference in New Issue
Block a user