changeset 580:33a77ceaed26

Added more file extension variations for CoreAudio.
author Eric Wing <ewing . public |-at-| gmail . com>
date Tue, 23 Nov 2010 18:23:32 -0800
parents 7ff36153215a
children 2264b134b7ac
files decoders/coreaudio.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/decoders/coreaudio.c	Sat Nov 06 00:27:45 2010 -0700
+++ b/decoders/coreaudio.c	Tue Nov 23 18:23:32 2010 -0800
@@ -59,16 +59,20 @@
 	"mp4",
 	"m4a",
 	"aac",
+	"adts",
 	"caf",
 	"Sd2f",
 	"Sd2",
 	"au",
+	"snd",
 	"next",
 	"mp2",
 	"mp1",
 	"ac3",
 	"3gpp",
+	"3gp",
 	"3gp2",
+	"3g2",
 	"amrf",
 	"amr",
 	"ima4",
@@ -159,7 +163,7 @@
 	{
 		return kAudioFileAAC_ADTSType;
 	}
-	else if( (__Sound_strcasecmp(file_extension, "aac") == 0)
+	else if( (__Sound_strcasecmp(file_extension, "adts") == 0)
 	)
 	{
 		return kAudioFileAAC_ADTSType;
@@ -177,6 +181,7 @@
 		return kAudioFileSoundDesigner2Type;
 	}
 	else if( (__Sound_strcasecmp(file_extension, "au") == 0)
+		|| (__Sound_strcasecmp(file_extension, "snd") == 0)
 		|| (__Sound_strcasecmp(file_extension, "next") == 0)
 	)
 	{
@@ -198,11 +203,13 @@
 		return kAudioFileAC3Type;
 	}
 	else if( (__Sound_strcasecmp(file_extension, "3gpp") == 0)
+			|| (__Sound_strcasecmp(file_extension, "3gp") == 0)		
 	)
 	{
 		return kAudioFile3GPType;
 	}
 	else if( (__Sound_strcasecmp(file_extension, "3gp2") == 0)
+			|| (__Sound_strcasecmp(file_extension, "3g2") == 0)
 	)
 	{
 		return kAudioFile3GP2Type;