Updated mime types.

CQTexperiment
vspader 2007-10-14 18:39:58 +00:00
parent f1b9141f4b
commit 3ee193e975
10 changed files with 55 additions and 11 deletions

View File

@ -19,6 +19,11 @@
return [CueSheetContainer fileTypes];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"application/x-cue", nil]; //This is basically useless
}
- (NSDictionary *)properties
{
NSMutableDictionary *properties = [[decoder properties] mutableCopy];

View File

@ -173,11 +173,6 @@ void closeCallback(void *f)
}
}
+ (NSArray *)fileTypes
{
return [NSArray arrayWithObjects:@"it", @"xm", @"s3m", @"mod",nil];
}
- (void)setSource:(id<CogSource>)s
{
[s retain];
@ -190,4 +185,14 @@ void closeCallback(void *f)
return source;
}
+ (NSArray *)fileTypes
{
return [NSArray arrayWithObjects:@"it", @"xm", @"s3m", @"mod", nil];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"audio/x-it", @"audio/x-xm", @"audio/x-s3m", @"audio/x-mod", nil];
}
@end

View File

@ -307,7 +307,12 @@ void ErrorCallback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorS
+ (NSArray *)fileTypes
{
return [NSArray arrayWithObjects:@"flac", @"fla", nil];
return [NSArray arrayWithObjects:@"flac", nil];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"audio/x-flac", nil];
}
@end

View File

@ -161,6 +161,11 @@ gme_err_t readCallback( void* data, void* out, long count )
return [GameContainer fileTypes];
}
+ (NSArray *)mimeTypes
{
return nil;
}
- (void)setSource:(id<CogSource>)s
{
[s retain];

View File

@ -108,4 +108,9 @@
return [NSArray arrayWithObject:@"ape"];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"audio/x-ape", nil];
}
@end

View File

@ -221,5 +221,9 @@ mpc_bool_t CanSeekProc(void *data)
return [NSArray arrayWithObject:@"mpc"];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"audio/x-musepack", nil];
}
@end

View File

@ -189,6 +189,11 @@
return extensions;
}
+ (NSArray *)mimeTypes
{
return nil;
}
- (NSDictionary *)properties
{
return [NSDictionary dictionaryWithObjectsAndKeys:

View File

@ -119,5 +119,10 @@
return [NSArray arrayWithObject:@"shn"];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"application/x-shorten", nil]; //This is basically useless
}
@end

View File

@ -136,15 +136,15 @@ long sourceTell(void *datasource)
nil];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"application/ogg", @"application/x-ogg", nil];
}
+ (NSArray *)fileTypes
{
return [NSArray arrayWithObjects:@"ogg",nil];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"application/ogg", @"application/x-ogg", @"audio/x-vorbis+ogg", nil];
}
@end

View File

@ -260,7 +260,12 @@ int32_t WriteBytesProc(void *ds, void *data, int32_t bcount)
+ (NSArray *)fileTypes
{
return [NSArray arrayWithObject:@"wv"];
return [NSArray arrayWithObjects:@"wv", @"wvp", nil];
}
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"audio/x-wavpack", nil];
}