Restore libFLAC plugin on macOS 10.13 and newer

CQTexperiment
Dan Leehr 2020-11-23 16:44:44 -05:00
parent cd84ec683e
commit 1d4a777018
1 changed files with 2 additions and 16 deletions

View File

@ -323,26 +323,12 @@ void ErrorCallback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorS
+ (NSArray *)fileTypes
{
if (@available(macOS 10.13, *))
{
return [NSArray array];
}
else
{
return [NSArray arrayWithObjects:@"flac", nil];
}
return [NSArray arrayWithObjects:@"flac", nil];
}
+ (NSArray *)mimeTypes
{
if (@available(macOS 10.13, *))
{
return [NSArray array];
}
else
{
return [NSArray arrayWithObjects:@"audio/x-flac", nil];
}
return [NSArray arrayWithObjects:@"audio/x-flac", nil];
}
+ (float)priority