Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforge.net>2009-10-13 01:07:14 +0400
committerJustin Maggard <jmaggard@users.sourceforge.net>2009-10-13 01:07:14 +0400
commita6a586f9353296e5d3a4f5f28352e2ec49204fb2 (patch)
treec84ce94f0ad7bd3011b9f696a7e999e1b697527c /metadata.c
parenta8dadcbbc87f4ebfcdce8b276ad9baa53f023847 (diff)
* Add PCM support, assuming defaults of 44.1K and 2 channels.
Diffstat (limited to 'metadata.c')
-rw-r--r--metadata.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/metadata.c b/metadata.c
index 1ab2ec3..757d06e 100644
--- a/metadata.c
+++ b/metadata.c
@@ -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);