debug
This commit is contained in:
parent
9303afba7e
commit
7fdfce8519
|
@ -17,7 +17,7 @@ srcChannelIndex = 46
|
||||||
destChannelIndex = 47
|
destChannelIndex = 47
|
||||||
def my_callback(shmName, dataSize, dataCount, sampleRate, numChannels, channelIndex):
|
def my_callback(shmName, dataSize, dataCount, sampleRate, numChannels, channelIndex):
|
||||||
print(f"dataSize:{dataSize}, dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}")
|
print(f"dataSize:{dataSize}, dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}")
|
||||||
print(f"data:{}shmName)
|
print(f"data:{shmName}")
|
||||||
#fd = os.open(shmName, os.O_RDONLY)
|
#fd = os.open(shmName, os.O_RDONLY)
|
||||||
#if fd == -1:
|
#if fd == -1:
|
||||||
# raise RuntimeError(f"无法打开共享内存 {shmName}")
|
# raise RuntimeError(f"无法打开共享内存 {shmName}")
|
||||||
|
|
Loading…
Reference in New Issue