debug
This commit is contained in:
parent
e3f8351db4
commit
f4563d5fb5
|
@ -16,6 +16,8 @@ def my_callback(npData, dataSize, dataCount, sampleRate, numChannels, channelInd
|
|||
print(f"dataSize:{dataSize}, dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}")
|
||||
audioData = np.array([0, 1, -1, 0], dtype=np.int16)
|
||||
ret = rtc_plugins.sendCustomAudioData(srcChannelIndex, audioData, 48000, 1, len(audioData))
|
||||
if ret != 0:
|
||||
print(f"resend fail, ret:{ret}")
|
||||
ret = rtc_plugins.init(destUserId, destDisplayName, destRoomId, my_callback)
|
||||
if ret != 0:
|
||||
print(f"init fail, ret:{ret}")
|
||||
|
|
Loading…
Reference in New Issue