Skip to content

Commit

Permalink
fix: play samples fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tamworth committed Jul 24, 2024
1 parent ae12f82 commit 314ee76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class CustomPcmAudioSourceMain: BaseViewController {
extension CustomPcmAudioSourceMain: AgoraPcmSourcePushDelegate {
func onAudioFrame(data: UnsafeMutablePointer<UInt8>) {
agoraKit.pushExternalAudioFrameRawData(data,
samples: samples,
samples: samples*Int(channel),
sampleRate: Int(sampleRate),
channels: Int(channel),
trackId: Int(trackId),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class CustomPcmAudioSourceMain: BaseViewController {
extension CustomPcmAudioSourceMain: AgoraPcmSourcePushDelegate {
func onAudioFrame(data: UnsafeMutablePointer<UInt8>) {
agoraKit.pushExternalAudioFrameRawData(data,
samples: samples,
samples: samples*Int(channel),
sampleRate: Int(sampleRate),
channels: Int(channel),
trackId: Int(trackId),
Expand Down

0 comments on commit 314ee76

Please sign in to comment.