fix(prettifyAudioTrackNames): only resolve to "Mono Audio" for audio tracks with 1 channel

This commit is contained in:
sidneys committed 2019-04-19 07:23:17 +02:00
1 parent 363d5f52ee
commit 1714bc6a42
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -326,7 +326,7 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
let channelCount = Int(audioTrack.formatSummary[range])!
// Use channel count to determine track name
if channelCount < 2 {
if channelCount == 1 {
audioTrack.name = "Mono Audio"
} else if channelCount == 2 {
audioTrack.name = "Stereo Audio"
+1 -1
View File
@@ -469,7 +469,7 @@ class QueuePrettifyAudioTrackNameAction : NSObject, QueueActionProtocol {
let channelCount = Int(audioTrack.formatSummary[range])!
// Use channel count to determine track name
if channelCount < 2 {
if channelCount == 1 {
audioTrack.name = "Mono Audio"
} else if channelCount == 2 {
audioTrack.name = "Stereo Audio"