predicate(forAudioSampleRate:operatorType:)
Creates a NSPredicate for audio sample rate which can be used with other NSPredicates to express variant preferences.
Declaration
class func predicate(forAudioSampleRate sampleRate: Double, operatorType: NSComparisonPredicate.Operator) -> NSPredicateParameters
- sampleRate:
The RHS value for the sample rate in the predicate equation.
- operatorType:
The valid values are NSLessThanPredicateOperatorType, NSLessThanOrEqualToPredicateOperatorType, NSGreaterThanPredicateOperatorType, NSGreaterThanOrEqualToPredicateOperatorType, NSEqualToPredicateOperatorType and NSNotEqualToPredicateOperatorType.
Discussion
Predicate will be evaluated on the media selection option selected for the asset. Media selection options for primary assets may be specified in the AVAssetDownloadConfiguration mediaSelections property. Media selection options for interstitial assets may be circumscribed by -[AVAssetDownloadConfiguration setInterstitialMediaSelectionCriteria: forMediaCharacteristic:].
See Also
Building predicates
predicate(forAudioSampleRate:mediaSelectionOption:operatorType:)predicate(forBinauralAudio:)predicate(forBinauralAudio:mediaSelectionOption:)predicate(forChannelCount:mediaSelectionOption:operatorType:)predicate(forChannelCount:operatorType:)predicate(forDownmixAudio:)predicate(forDownmixAudio:mediaSelectionOption:)predicate(forImmersiveAudio:)predicate(forImmersiveAudio:mediaSelectionOption:)predicate(forPresentationHeight:operatorType:)predicate(forPresentationWidth:operatorType:)