Add DSD file support

* add mimetype audio/x-dsd  (.dsf/.dff)
* add id3tag and fileinfo support (only .dsf)
This commit is contained in:
Takeshich NAKAMURA
2014-05-14 23:42:23 +09:00
committed by Justin Maggard
parent ade51e9c94
commit 799e6cf505
9 changed files with 900 additions and 10 deletions

View File

@ -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);