comparison decoders/coreaudio.c @ 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
comparison
equal deleted inserted replaced
578:7ff36153215a 580:33a77ceaed26
57 "wave", 57 "wave",
58 "mp3", 58 "mp3",
59 "mp4", 59 "mp4",
60 "m4a", 60 "m4a",
61 "aac", 61 "aac",
62 "adts",
62 "caf", 63 "caf",
63 "Sd2f", 64 "Sd2f",
64 "Sd2", 65 "Sd2",
65 "au", 66 "au",
67 "snd",
66 "next", 68 "next",
67 "mp2", 69 "mp2",
68 "mp1", 70 "mp1",
69 "ac3", 71 "ac3",
70 "3gpp", 72 "3gpp",
73 "3gp",
71 "3gp2", 74 "3gp2",
75 "3g2",
72 "amrf", 76 "amrf",
73 "amr", 77 "amr",
74 "ima4", 78 "ima4",
75 "ima", 79 "ima",
76 NULL 80 NULL
157 else if( (__Sound_strcasecmp(file_extension, "aac") == 0) 161 else if( (__Sound_strcasecmp(file_extension, "aac") == 0)
158 ) 162 )
159 { 163 {
160 return kAudioFileAAC_ADTSType; 164 return kAudioFileAAC_ADTSType;
161 } 165 }
162 else if( (__Sound_strcasecmp(file_extension, "aac") == 0) 166 else if( (__Sound_strcasecmp(file_extension, "adts") == 0)
163 ) 167 )
164 { 168 {
165 return kAudioFileAAC_ADTSType; 169 return kAudioFileAAC_ADTSType;
166 } 170 }
167 else if( (__Sound_strcasecmp(file_extension, "caf") == 0) 171 else if( (__Sound_strcasecmp(file_extension, "caf") == 0)
175 ) 179 )
176 { 180 {
177 return kAudioFileSoundDesigner2Type; 181 return kAudioFileSoundDesigner2Type;
178 } 182 }
179 else if( (__Sound_strcasecmp(file_extension, "au") == 0) 183 else if( (__Sound_strcasecmp(file_extension, "au") == 0)
184 || (__Sound_strcasecmp(file_extension, "snd") == 0)
180 || (__Sound_strcasecmp(file_extension, "next") == 0) 185 || (__Sound_strcasecmp(file_extension, "next") == 0)
181 ) 186 )
182 { 187 {
183 return kAudioFileNextType; 188 return kAudioFileNextType;
184 } 189 }
196 ) 201 )
197 { 202 {
198 return kAudioFileAC3Type; 203 return kAudioFileAC3Type;
199 } 204 }
200 else if( (__Sound_strcasecmp(file_extension, "3gpp") == 0) 205 else if( (__Sound_strcasecmp(file_extension, "3gpp") == 0)
206 || (__Sound_strcasecmp(file_extension, "3gp") == 0)
201 ) 207 )
202 { 208 {
203 return kAudioFile3GPType; 209 return kAudioFile3GPType;
204 } 210 }
205 else if( (__Sound_strcasecmp(file_extension, "3gp2") == 0) 211 else if( (__Sound_strcasecmp(file_extension, "3gp2") == 0)
212 || (__Sound_strcasecmp(file_extension, "3g2") == 0)
206 ) 213 )
207 { 214 {
208 return kAudioFile3GP2Type; 215 return kAudioFile3GP2Type;
209 } 216 }
210 else if( (__Sound_strcasecmp(file_extension, "amrf") == 0) 217 else if( (__Sound_strcasecmp(file_extension, "amrf") == 0)