Displaying 3 results from an estimated 3 matches for "iframesize".
Did you mean:
framesize
2006 Sep 08
2
problem with compression and decompression
...ng parameters:
22050 (which is the frequency with which to take sound samples)
AL_FORMAT_MONO16 (which is the OpenAL format in use)
BUFFERSIZE (which is 1024, the size of the frames which I read)
As for the arguments for "Compress()", pData is the ALchar pointer which
contains the data. iFrameSize is the integer which will store the number of
bytes actually written to the compressed frame. cComeFrame is the character
array which eventually stores the compressed voice data.
As for the arguments for "Decompress()", pDecomData is the ALchar pointer
which will store the decompressed v...
2006 Sep 15
2
Constant noise in the background in realtime data
...d quality but the noise keeps running in the background whether I talk or not.
Here are the two main encoding/decoding function I am using
//------------------------------------------------------------------------------------------
void OALCapture::Compress(ALchar* pData, int *iFrameSize, char* cComFrame)
{
// Reset speex bits before frame encode
speex_bits_reset(&m_oBits);
int nFrameSize = 0;
speex_encoder_ctl(m_poSpeexCompressState, SPEEX_GET_FRAME_SIZE, &nFrameSize);
// Our samples are 2 bytes each so number of samples is actually
// have the buffer...
2013 May 09
1
Moving from Speex to Opus (question 2)
...rate(8000)
{
}
CSpxCodec::~CSpxCodec()
{
}
void CSpxCodec::Init()
{
speex_bits_init(&bits);
decstate = speex_decoder_init(&speex_nb_mode);
speex_decoder_ctl(decstate, SPEEX_SET_SAMPLING_RATE, &rate);
speex_decoder_ctl(decstate, SPEEX_SET_ENH, &enh);
int iFrameSize=0;
speex_decoder_ctl(decstate, SPEEX_GET_FRAME_SIZE, &iFrameSize);
}
void CSpxCodec::Free()
{
speex_bits_destroy(&bits);
speex_decoder_destroy(decstate);
}
void CSpxCodec::Decode(unsigned char* inbuf, short* outbuf, unsigned int
len)
{
char cbits[MAX_FRAME_BYTES];...