Displaying 6 results from an estimated 6 matches for "dwlength".
Did you mean:
wlength
2004 Aug 06
2
SPEEX_SET_USER_HANDLER once again
...an't find any sample code for custom in-band messages.
Is there anyone who can help?
Here some sample code:
/********************************** encoder
*********************************************/
// read raw data from serving buffer
void CSpeexEncoderThread::Decode(char * pcData, DWORD dwLength){
...
speex_encode(st, s, &bits); // encode
...
if (syncmsg == TRUE && synccount < 256){ // is there a sync
message?
syncstruct[synccount].sync_value = syncvalue; //fill the
sync structure
......
2010 Mar 08
0
Difficulties in add cover art to FLAC file
..._Picture_Type)3;
FLAC__metadata_object_picture_set_mime_type( picture, "image/jpeg", true );
FLAC__metadata_object_picture_set_description( picture,
(FLAC__byte*)"", true );
CFile picfile;
picfile.Open( L"I:\\1.jpg", CFile::modeRead | CFile::shareDenyWrite);
ULONGLONG dwLength = picfile.GetLength();
LPSTR pData = new char[static_cast<unsigned int>(dwLength+1)];
picfile.Read(pData, static_cast<UINT>(dwLength));
FLAC__metadata_object_picture_set_data( picture, (FLAC__byte*)pData,
dwLength, true );
delete [] pData;
I did some tests and it seemed that the error...
2004 Aug 06
1
About reducing noise..
...in[i] = out_buffer[i];
speex_bits_reset(&bits);
// encode
speex_encode ( state, in, &bits);
// copy bits to an array of chars
nbBytes = speex_bits_write ( &bits, cbits, 200);
// copy these cbits into a buffer
CopyBuffer(pBuffer + dwLength, cbits, nbBytes);
dwLength += nbBytes;
}
// uninitialize
For decoding .
SpeexBits bits;
int i, tmp;
state = speex_decoder_init(&speex_nb_mode);
tmp =1;
speex_decoder_ctl(state, SPEEX_SET_ENH, &tmp);
speex_bits_init(&bits);
char temp[10];
long sizeToRead = 4;
while(1)
{...
2004 Aug 06
0
SPEEX_SET_USER_HANDLER once again
...ges.
>
> Is there anyone who can help?
>
> Here some sample code:
>
> /********************************** encoder
> *********************************************/
>
> // read raw data from serving buffer
> void CSpeexEncoderThread::Decode(char * pcData, DWORD dwLength){
>
> ...
>
> speex_encode(st, s, &bits); // encode
>
> ...
>
> if (syncmsg == TRUE && synccount < 256){ // is there a sync
> message?
>
> syncstruct[synccount].sync_value = syncvalue;...
2004 Aug 06
2
speed and memory
hello,
i switched to use the encoder.processData() and
encoder.getProcessedData() of jspeex. however it looks to me like a
memory leak ... memory usage is increasing very fast and there is no
visible stop ... after about five minutes java.lang.OutOfMemory occurs.
I think it must be the jspeex component, because before i added jspeex
to my app usage was constant at about 5mb.
is it possible
2004 Aug 06
2
AW: SPEEX_SET_USER_HANDLER once again
...r to use and overhead can
be
>made minimal anyway.
At first there is no need for ogg, the programm is only for encoding
voice in a test environment.
And if the user in-band callback mechanism works it is more then enough.
<p><p>void CSpeexEncoderThread::Decode(char * pcData, DWORD dwLength){
...
speex_encode(st, s, &bits); // encode
if (syncmsg == TRUE && synccount < 256){ // is there a sync
message?
syncstruct[synccount].sync_value = syncvalue; //fill the sync
structure
...
//cust...