Added ability to set imported multichannel channel AAC track to Passthru + AAC (#39)

This commit is contained in:
Stephen Flynn authored and GitHub committed 2024-11-29 13:40:19 +01:00
1 parent 8bbb34298a
commit 22df3e92db
1 file changed
+11
+11
View File
@@ -115,6 +115,17 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
enabled: true)
actions.append(conversionAction)
}
let audioTrack = track as! MP42AudioTrack
let channelCount = audioTrack.channels
if track.format == kMP42AudioCodecType_MPEG4AAC && channelCount > 2 {
let conversionAction = Action(title: NSLocalizedString("AAC + Passthru", comment: "File Import action menu item."),
tag: 6,
enabled: true)
actions.append(conversionAction)
}
default:
break
}