* Add PCM support, assuming defaults of 44.1K and 2 channels.

This commit is contained in:
Justin Maggard
2009-10-12 21:07:14 +00:00
parent f3d9805d7b
commit ecec767f17
5 changed files with 82 additions and 1 deletions

View File

@ -190,6 +190,11 @@ GetAudioMetadata(const char * path, char * name)
strcpy(type, "ogg");
strcpy(mime, "application/ogg");
}
else if( ends_with(path, ".pcm") )
{
strcpy(type, "pcm");
strcpy(mime, "audio/L16");
}
else
{
DPRINTF(E_WARN, L_GENERAL, "Unhandled file extension on %s\n", path);