Closed nacho-bodega closed 3 years ago
Hello,
I have a question about snk_hops_construct() function in snk_hops.c file. There are malloc and memset functions for obj->buffer.
obj->buffer = (char ) malloc(sizeof(char) msg_hops_config->nChannels msg_hops_config->hopSize 4); memset(obj->buffer, 0x00, sizeof(char) msg_hops_config->nChannels msg_hops_config->hopSize * 4);
Where does the number 4 come from? Because odas_web uses 4 channel audio recorder? Are you expecting at least 4 tracking signals?
I'm trying to read port10000 signals but having a hard time from the server-side.
Thanks
Oh, I think I understand now.
pcm_normalized2signedXXbits(sample, nBytes, obj->bytes) is capable to set upto 32bits audio which requires a 4 bytes( char) for each channel.
Hello,
I have a question about snk_hops_construct() function in snk_hops.c file. There are malloc and memset functions for obj->buffer.
obj->buffer = (char ) malloc(sizeof(char) msg_hops_config->nChannels msg_hops_config->hopSize 4); memset(obj->buffer, 0x00, sizeof(char) msg_hops_config->nChannels msg_hops_config->hopSize * 4);
Where does the number 4 come from? Because odas_web uses 4 channel audio recorder? Are you expecting at least 4 tracking signals?
I'm trying to read port10000 signals but having a hard time from the server-side.
Thanks