Skip to content

Commit

Permalink
[Recorder] override audioSettings.AVNumberOfChannelsKey using ASBD.mC…
Browse files Browse the repository at this point in the history
…hannelsPerFrame
  • Loading branch information
YuAo committed Aug 19, 2021
1 parent d3bb659 commit 5aaeaa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/VideoIO/MultitrackMovieRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ public final class MultitrackMovieRecorder {

if let currentASBD = CMAudioFormatDescriptionGetStreamBasicDescription(formatDescription) {
audioSettings[AVSampleRateKey] = currentASBD.pointee.mSampleRate
audioSettings[AVNumberOfChannelsKey] = currentASBD.pointee.mChannelsPerFrame
}

var aclSize: Int = 0
Expand Down

0 comments on commit 5aaeaa3

Please sign in to comment.