search for: m_opusdecod

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

Did you mean: m_opusdecoder
2012 Oct 25
2
WAVE PCM to OPUS and back
...sPerSec * waveform.nBlockAlign; #define BUFSIZE 512 ... case MM_WIM_DATA: { WAVEHDR *Hdr = (WAVEHDR *) msg.lParam; int opusRes; m_opusEncoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_AUDIO, &opusRes); m_opusDecoder = opus_decoder_create(48000, 2, &opusRes); unsigned char data[BUFSIZE]; opus_int32 dataLength = opus_encode(m_opusEncoder, (short*)Hdr->lpData, 80, data, BUFSIZE); dataLength = opus_decode(m_opusDecoder, (unsigned char*)data, dataLe...