fix(prettifyAudioTrackNames): only resolve to "Mono Audio" for audio tracks with 1 channel
This commit is contained in:
1 parent
363d5f52ee
commit
1714bc6a42
2 files changed
+2
-2
No files matched your search
@@ -326,7 +326,7 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
let channelCount = Int(audioTrack.formatSummary[range])!
|
let channelCount = Int(audioTrack.formatSummary[range])!
|
||||||
|
|
||||||
// Use channel count to determine track name
|
// Use channel count to determine track name
|
||||||
if channelCount < 2 {
|
if channelCount == 1 {
|
||||||
audioTrack.name = "Mono Audio"
|
audioTrack.name = "Mono Audio"
|
||||||
} else if channelCount == 2 {
|
} else if channelCount == 2 {
|
||||||
audioTrack.name = "Stereo Audio"
|
audioTrack.name = "Stereo Audio"
|
||||||
|
|||||||
@@ -469,7 +469,7 @@ class QueuePrettifyAudioTrackNameAction : NSObject, QueueActionProtocol {
|
|||||||
let channelCount = Int(audioTrack.formatSummary[range])!
|
let channelCount = Int(audioTrack.formatSummary[range])!
|
||||||
|
|
||||||
// Use channel count to determine track name
|
// Use channel count to determine track name
|
||||||
if channelCount < 2 {
|
if channelCount == 1 {
|
||||||
audioTrack.name = "Mono Audio"
|
audioTrack.name = "Mono Audio"
|
||||||
} else if channelCount == 2 {
|
} else if channelCount == 2 {
|
||||||
audioTrack.name = "Stereo Audio"
|
audioTrack.name = "Stereo Audio"
|
||||||
|
|||||||
Reference in new issue
Block a user