Displaying 1 result from an estimated 1 matches for "nrf_log_info".
2018 Jun 29
1
OPUS on cortex M4
...opus_int16 decoded_buffer[test_data_size];
opus_int16 *p_decoded_buffer = decoded_buffer;
for(uint16_t i = 0; i < test_data_size; i++)
{
test_data[i] = 100;
}
opus_int32 encoded_size = opus_encode(enc, p_test_data, test_data_size, p_encoded_buffer, max_data_bytes);
NRF_LOG_INFO("encoded size is %d", encoded_size);
opus_int32 decoded_size = opus_decode(dec, p_encoded_buffer, encoded_size, p_decoded_buffer, test_data_size, 0);
NRF_LOG_INFO("decoded size is %d", decoded_size);
Opus_encode returns 55 as encoded length, which seems reasonable to m...