search for: p_encoded_buffer

Displaying 1 result from an estimated 1 matches for "p_encoded_buffer".

2018 Jun 29
1
OPUS on cortex M4
...ould work? int frame_size = 160; opus_int16 test_data_size = frame_size*channels*sizeof(opus_int16); opus_int32 max_data_bytes = 100; opus_int16 test_data[test_data_size]; opus_int16 *p_test_data = test_data; unsigned char encoded_buffer[max_data_bytes]; unsigned char *p_encoded_buffer = encoded_buffer; 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,...