buresu / ndi-python

NewTek NDI Python wrapper
MIT License
133 stars 30 forks source link

send audio 16bpp example #17

Open triggerfinger-debug opened 2 years ago

triggerfinger-debug commented 2 years ago

Hello, I am noticing something not quite right with the send_audio_16bpp.py example. I have installed on both Windows and Raspberry Pi, and testing with NDI Monitor on Windows.

The audio is not silent, but instead sounds like a taser. Same behavior coming from both Windows and Raspberry Pi. If I run the C++ NDIlib_Send_Audio_16bpp example, I get a source of silent audio.

Anybody else experience this?

triggerfinger-debug commented 2 years ago

I think the problem is in the line audio_frame.data = np.zeros((4, 1920), dtype=np.int16)

works if changed to

data = np.zeros((4, 1920), dtype=np.int16)
audio_frame.data = data
buresu commented 2 years ago

Thank you for your reporting and sorry for late reply. I don't have time to confirm this issue now, but please keep this issue re-opened until I can confirm and fix the problem.