Avoid using a regex to get the channels count.

This commit is contained in:
Damiano Galassi committed 2019-04-22 10:01:31 +02:00
1 parent a847b95644
commit 79c73c33f6
5 files changed
+38 -35

No files matched your search

@@ -67,7 +67,7 @@ final class SoundViewController : NSViewController {
if (track.format == kMP42AudioCodecType_AC3 || track.format == kMP42AudioCodecType_EnhancedAC3 ||
track.format == kMP42AudioCodecType_DTS) &&
track.conversionSettings.format != kMP42AudioCodecType_MPEG4AAC,
track.conversionSettings?.format != kMP42AudioCodecType_MPEG4AAC,
let audioTracks = file.tracks(withMediaType: kMP42MediaType_Audio) as? [MP42AudioTrack] {
fallbacksPopUp.isEnabled = true
@@ -113,7 +113,7 @@ final class SoundViewController : NSViewController {
private func isAAC(track: MP42AudioTrack) -> Bool {
return track.format == kMP42AudioCodecType_MPEG4AAC ||
track.format == kMP42AudioCodecType_MPEG4AAC_HE ||
track.conversionSettings.format == kMP42AudioCodecType_MPEG4AAC
track.conversionSettings?.format == kMP42AudioCodecType_MPEG4AAC
}
// MARK: Actions