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 de6063780b
commit 0dee6e05ab

View file

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