Opus: Boost priority of libopusfile decoder

This should take priority over the Core Audio and FFmpeg decoders.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-02-14 19:07:31 -08:00
parent 632e53510c
commit abd11ebc3b

View file

@ -348,8 +348,9 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
return @[@"audio/x-opus+ogg", @"application/ogg"]; return @[@"audio/x-opus+ogg", @"application/ogg"];
} }
// We want this to take priority over both Core Audio and FFmpeg
+ (float)priority { + (float)priority {
return 1.0; return 2.0;
} }
+ (NSArray *)fileTypeAssociations { + (NSArray *)fileTypeAssociations {