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]; return [CueSheetContainer fileTypes];
} }
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"application/x-cue", nil]; //This is basically useless
}
- (NSDictionary *)properties - (NSDictionary *)properties
{ {
NSMutableDictionary *properties = [[decoder properties] mutableCopy]; 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 - (void)setSource:(id<CogSource>)s
{ {
[s retain]; [s retain];
@ -190,4 +185,14 @@ void closeCallback(void *f)
return source; 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 @end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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