Skip to content

Commit c70a729

Browse files
author
zhaoyongqiang
committed
修改方法
1 parent 51d6017 commit c70a729

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

macOS/APIExample/Commons/ExternalAudio/ExternalAudio.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ - (void)audioController:(AudioController *)controller didCaptureData:(unsigned c
294294
}
295295
}
296296
else {
297-
[self.agoraKit pushExternalAudioFrameNSData:[NSData dataWithBytes:data length:bytesLength] sourceId:1 timestamp:0];
297+
[self.agoraKit pushExternalAudioFrameRawData:data samples:441 * 10 sourceId:1 timestamp:0];
298298
}
299299

300300
}

0 commit comments

Comments
 (0)