Skip to content

Commit

Permalink
fix: Exception where format.sampleRate != hwFormat.sampleRate
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pellow committed Aug 27, 2024
1 parent aebeac5 commit f03a1d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions record_darwin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.1.3
* fix: Exception where format.sampleRate != hwFormat.sampleRate

## 1.1.2
* fix: Remove print on conversion error.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RecorderStreamDelegate: NSObject, AudioRecordingStreamDelegate {
}
#endif

let srcFormat = audioEngine.inputNode.outputFormat(forBus: 0)
let srcFormat = audioEngine.inputNode.inputFormat(forBus: 0)

let dstFormat = AVAudioFormat(
commonFormat: .pcmFormatInt16,
Expand Down

0 comments on commit f03a1d5

Please sign in to comment.