debug
This commit is contained in:
parent
7fdfce8519
commit
8a106b2d07
|
@ -22,11 +22,14 @@ ret = rtc_plugins.initSend(srcRoomId, destRoomId, destChannelIndex)
|
|||
if ret != 0:
|
||||
print(f"initSend fail, ret:{ret}")
|
||||
exit(1)
|
||||
audioData = np.array([0, 1, -1, 0], dtype=np.int16)
|
||||
ret = rtc_plugins.sendCustomAudioData(destChannelIndex, audioData, 48000, 1, len(audioData))
|
||||
if ret != 0:
|
||||
print(f"send fail, ret:{ret}")
|
||||
ret = rtc_plugins.initRecv(srcRoomId, srcUserId, srcChannelIndex)
|
||||
if ret != 0:
|
||||
print(f"initRecv fail, ret:{ret}")
|
||||
exit(1)
|
||||
audioData = np.array([0, 1, -1, 0], dtype=np.int16)
|
||||
for i in range(100):
|
||||
ret = rtc_plugins.sendCustomAudioData(destChannelIndex, audioData, 48000, 1, len(audioData))
|
||||
if ret != 0:
|
||||
|
|
Loading…
Reference in New Issue