search for: speex_decoder_destroy

Displaying 20 results from an estimated 61 matches for "speex_decoder_destroy".

2005 Oct 17
6
Error Executing sampledec in VC++
...its_read_from (&spxbits, cbits, nbBytes); speex_decode (decstate, &spxbits, pcm); // Copy 1 frame from float pcm to short spx for (n=0; n<FRAME_SIZE; n++) spx [n] = pcm [n]; fwrite (spx, sizeof(short), FRAME_SIZE, fs); } // end of loop // Entire file has been read, decoded and saved speex_decoder_destroy (decstate); speex_bits_destroy (&spxbits); fclose (fo); fclose (fs); cout << "Finished processing!\n"; } On 10/18/05, Steve Russell <srussell@innernet.net> wrote: > > Mon, > Here is feedback that I got concerning the access violation, i.e. the > failure of t...
2005 Oct 17
3
Error Executing sampledec in VC++
...its_read_from (&spxbits, cbits, nbBytes); speex_decode (decstate, &spxbits, pcm); // Copy 1 frame from float pcm to short spx for (n=0; n<FRAME_SIZE; n++) spx [n] = pcm [n]; fwrite (spx, sizeof(short), FRAME_SIZE, fs); } // end of loop // Entire file has been read, decoded and saved speex_decoder_destroy (decstate); speex_bits_destroy (&spxbits); fclose (fo); fclose (fs); cout << "Finished processing!\n"; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20051017/4fea1d86/attachment.html
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
Hi, The manual 1.1.6 of sampledec.c says that /*Destroy the decoder state*/ speex_encoder_destroy(state); Should it be be /*Destroy the decoder state*/ speex_decoder_destroy(state); instead? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20050221/c460253b/attachment.html
2005 Oct 17
0
Error Executing sampledec in VC++
...code (decstate, &spxbits, pcm); // Copy 1 frame from float pcm to short spx for (n=0; n<FRAME_SIZE; n++) spx [n] = pcm [n]; fwrite (spx, sizeof(short), FRAME_SIZE, fs); } // end of loop // Entire file has been read, decoded and saved speex_decoder_destroy (decstate); speex_bits_destroy (&spxbits); fclose (fo); fclose (fs); cout << "Finished processing!\n"; } On 10/18/05, Steve Russell <srussell@innernet.net> wrote: Mon, Here is feedback that I got concerning the access violation, i.e. the failure o...
2007 Aug 06
2
Attempting to shrink speex: Are these functions necessary?
...ynth In ltp.c: forced_pitch_quant forced_pitch_unquant In math_approx.c: spx_ilog2 _spx_cos_pi_2 spx_cos_norm spx_exp2 spx_atan In nb_celp.c: nb_encoder_destroy nb_decoder_destroy In quant_lsp.c: lsp_quant_nb lsp_unquant_nb lsp_quant_high lsp_unquant_high In speex.c: speex_encoder_destroy speex_decoder_destroy speex_encode speex_decode nb_mode_query wb_mode_query speex_lib_ctl In speex_callbacks.c: speex_inband_handler speex_std_mode_request_handler speex_std_low_mode_request_handler speex_std_high_mode_request_handler speex_std_vbr_request_handler speex_std_enh_request_handler speex_std_vbr_quality_re...
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
...:35 +0800, James Oh wrote: > > Hi, > > > > The manual 1.1.6 of sampledec.c says that > > > > /*Destroy the decoder state*/ > > speex_encoder_destroy(state); > > > > Should it be be > > > > /*Destroy the decoder state*/ > > speex_decoder_destroy(state); > > > > instead? > > _______________________________________________ > > Speex-dev mailing list > > Speex-dev@xiph.org > > http://lists.xiph.org/mailman/listinfo/speex-dev -- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbroo...
2006 Jun 10
1
[PATCH] bug in sample code sampledec.c
..., this patch should fix it: Index: doc/sampledec.c =================================================================== --- doc/sampledec.c (revision 11555) +++ doc/sampledec.c (working copy) @@ -57,7 +57,7 @@ } /*Destroy the decoder state*/ - speex_encoder_destroy(state); + speex_decoder_destroy(state); /*Destroy the bit-stream truct*/ speex_bits_destroy(&bits); fclose(fout); -- Alfred E. Heggestad <aeh@db.org> Web: http://aeh.db.org/ VoIP: <sip:alfredh@symbianos.org> Phone: +47 21 98 71 20 Mobile: +47 98 23 67 05 Skype: alfredheggestad
2007 Dec 21
1
Continous decoding of several audio files without destroying speex_decoder
...eex_decoder_ctl(m_speex, SPEEX_RESET_STATE, &tmp); speex_bits_reset(&m_bits); OpenFile(speex audio file); while(end of file) { fread(speex frame); speex_bits_read_from(); speex_decode_int(); fwrite(decoded audio); } CloseFile(speex audio file); } speex_decoder_destroy(); speex_bits_destroy(); } Thanks in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20071221/735ce2cf/attachment.htm
2008 Apr 30
1
decode problem
...x_decoder_init(&speex_nb_mode); int tmp=1; speex_decoder_ctl(destate, SPEEX_SET_ENH, &tmp); return true; } void CMMediaObj::AmrFreeMemory() { if (destate){ speex_bits_destroy(&bits); speex_decoder_destroy(destate); } } #define FRAME_SIZE 320 int CMMediaObj::AmrDecodeOneFrame(char *src,char *dst) { speex_bits_read_from(&bits, src, 14); speex_decode_int(destate, &bits, (short*)dst); return FRAME_SIZE; } My problem is that I hear onl...
2004 Aug 06
2
decode in ppc 2003
...for (i=0;i<FRAME_SIZE;i++) out[i]=output[i]; /*Write the decoded audio to file*/ fwrite(out, sizeof(short), FRAME_SIZE, fout); } /*Destroy the decoder state*/ speex_decoder_destroy(state); /*Destroy the bit-stream truct*/ speex_bits_destroy(&bits); fclose(fout); //return 0; } <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, s...
2007 Jun 01
1
help on Blackfin
...#39; 'speex_bits_write [_speex_bits_write]' referenced from 'Debug\Process_data.doj' 'speex_decode_int [_speex_decode_int]' referenced from 'Debug\Process_data.doj' 'speex_decoder_ctl [_speex_decoder_ctl]' referenced from 'Debug\Process_data.doj' 'speex_decoder_destroy [_speex_decoder_destroy]' referenced from 'Debug\Process_data.doj' 'speex_decoder_init [_speex_decoder_init]' referenced from 'Debug\Process_data.doj' 'speex_encode_int [_speex_encode_int]' referenced from 'Debug\Process_data.doj' 'speex_encoder_ctl [...
2005 Oct 17
0
Error Executing sampledec in VC++
Mon, Here is feedback that I got concerning the access violation, i.e. the failure of the while loop below. Does this solve the problem? Steve My guess is that speex_decoder_init() should be outside the while().. loop as speex_decoder_destroy() is also outside. ----- Original Message ----- From: Mo Win To: speex-dev@xiph.org Sent: Monday, October 17, 2005 8:05 AM Subject: [Speex-dev] Error Executing sampledec in VC++ hey guys, I just compiled an application similar to sampledec.c (for speex 1.1.10) and it was fine but w...
2005 Aug 29
1
Bug in decoding
...tigated and found out that the same bug/error appears if I write a simple C-program. My main program was testenc.c in the speex source code. What I changed was to remove the decoder initialization in the beginning of the file and put them in the while()-loop before speex_decoder_int() and put a speex_decoder_destroy() just after the decode call (and of course, removed the destroy call at the end of the program). If I played the result from the original program, it was all clear and fine. With my multi decoding init and destroy function calls, the sound quality was reduced (lower sound output and some noise...
2013 May 09
1
Moving from Speex to Opus (question 2)
...); 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]; float output[MAX_FRAME_SIZE]; unsigned int i=0; unsigned int j=0; for (i=0; i<(len/62); i++) { for (j=0;j<62;j++) {...
2005 Sep 03
2
Library export file for Win32 (patch)
...====================================================== --- speex.def (revision 9882) +++ speex.def (working copy) @@ -2,49 +2,71 @@ ; speex.def ; LIBRARY +NAME libspeex.dll EXPORTS ; -speex_encoder_init -speex_encoder_destroy -speex_encode -speex_encoder_ctl -speex_decoder_init -speex_decoder_destroy -speex_decode -speex_decoder_ctl -speex_mode_query -speex_lib_ctl -speex_lib_get_mode -speex_bits_init -speex_bits_init_buffer -speex_bits_destroy -speex_bits_reset -speex_bits_rewind -speex_bits_read_from -speex_bits_read_whole_bytes -speex_bits_write -speex_bits_write_whole_bytes -...
2012 Mar 10
3
problem: The decoded frame is not as the original one
...ts,outBuffer,nbBytes); speex_decode_int(dec_state,&decBits,decFrame); //---------------------------------------------------- printf("\n BUFFER DECODED BACK \n"); for(z=0;z<160;z++) { printf("%i",decFrame[z]); printf ("? "); } speex_bits_destroy(&decBits); speex_decoder_destroy(dec_state); /*===============================END OF DECODING==============================================*/ printf("\n nbBytes: "); printf("%i",nbBytes); printf("\n frame_size= "); printf("%i",frame_size); printf ("\n"); //----------------- printf(...
2008 Nov 13
2
decoded sample is completely differen from original one
...eex_bits_read_from(&bits, encSamples, nbBytes); speex_decode_int(state, &bits, output); for(int i = 0; i < FRAME_SIZE; i++) { printf(" %04X", (short)output[i] & 0xFFFF); if((i + 1) % 8 == 0) { printf("\n"); } } speex_decoder_destroy(state); speex_bits_destroy(&bits); return 0; } int _tmain(int argc, _TCHAR* argv[]) { int nbBytes; char encSamples[FRAME_SIZE]; encode(&nbBytes, encSamples); decode(nbBytes, encSamples); return 0; }
2007 Apr 02
1
Problems with stereo data
...(short), 1, fin); fread(Buffer, 1, BytesToRead, fin); speex_bits_read_from(&Bits, Buffer, BytesToRead); speex_decode_int(State, &Bits, Output); speex_decode_stereo_int(Output, FrameSize, &StereoState); fwrite(Output, sizeof(short), FrameSize, fout); } fclose(fout); fclose(fin); speex_decoder_destroy(State); speex_bits_destroy(&Bits); }
2011 Nov 16
2
Just getting noise
...? ? ? ? ? ? /*Decode the data*/ ? ? ? ? ? ? ? ? ? speex_decode(state, &bits, output); ? ? ? ? ? ? ? ? ? for (i=0;i<(inputSize/2);i++) ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? out[i]=output[i]; ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? /*Destroy the decoder state*/ ? ? ? ? ? ? ? ? ? speex_decoder_destroy(state); ? ? ? ? ? ? ? ? ? /*Destroy the bit-stream truct*/ ? ? ? ? ? ? ? ? ? speex_bits_destroy(&bits); ? ? ? ? ? ? ? ? ? return (Enigma::u8*)out; ? ? ? ? ? ? ? ?}
2004 Aug 06
1
decode in ppc 2003
...out[i]=output[i]; > > > > /*Write the decoded audio to file*/ > > fwrite(out, sizeof(short), FRAME_SIZE, fout); > > } > > > > /*Destroy the decoder state*/ > > speex_decoder_destroy(state); > > /*Destroy the bit-stream truct*/ > > speex_bits_destroy(&bits); > > fclose(fout); > > //return 0; > > } -- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université...