search for: speex_init_head

Displaying 8 results from an estimated 8 matches for "speex_init_head".

Did you mean: speex_init_header
2004 Aug 06
2
Re: does installed lib support _int()s ?
>>>>> "Malcolm" == Malcolm Baldridge <speex@paypc.com> writes: Malcolm> Well, for compile-time, I'd think that an #ifdef would do the Malcolm> trick. How? VERSION isn't included anywhere except in speex_init_header(), and I do not see any other symbols that encode the version.... That said, I looked at the code for speex_encode_int and friends since writing that. When compiled w/o --enable-fixed-point the _int functions do what the code I was looking at updating already does: convert each sample from shor...
2004 Aug 06
2
does installed lib support _int()s ?
Assuming one prefers to use the speex_encode_int() and speex_decode_int() when available, but fallback to speex_encode() and speex_decode() if an older version if the lib is installed, how does one best make the determination? The only thing I can see to do is call speex_init_header() and look at the result. Even at compile time it seems one must compile a test app that outputs that data and then look at the version field of the header struct.... OTOH, I do not see the version string in the strings(1) output from either the static or shared libs. Am I missing something obv...
2005 Jun 22
1
Newbie - Encoding PCM
...t;speex_state,PCM_F,&IDA->speex_bits); speex_bits_insert_terminator(&IDA->speex_bits); d = speex_bits_write(&IDA->speex_bits, buffer, 200); *buffer += d; ret += d; d = 0; } } return ret; } int SPEEX_Init(struct _IDA_ClientSocket *IDA) { /* speex_init_header(&IDA->speex_header,8000,1,IDA->speex_mode); */ IDA->speex_mode = speex_lib_get_mode(SPEEX_MODEID_NB); speex_bits_init(&IDA->speex_bits); IDA->speex_state = speex_encoder_init(IDA->speex_mode); } int SPEEX_Close(struct _IDA_ClientSocket *IDA) { speex_bit...
2005 Sep 03
2
Library export file for Win32 (patch)
...rminator -speex_inband_handler -speex_std_mode_request_handler -speex_std_high_mode_request_handler -speex_std_char_handler -speex_default_user_handler -speex_std_low_mode_request_handler -speex_std_vbr_request_handler -speex_std_enh_request_handler -speex_std_vbr_quality_request_handler -speex_init_header -speex_header_to_packet -speex_packet_to_header -speex_encode_stereo -speex_decode_stereo -speex_std_stereo_request_handler +speex_bits_advance @1 +speex_bits_destroy @2 +speex_bits_init @3 +speex_bits_init_buffer @4 +speex_bits_insert_terminator @5 +speex_bits_nbytes @6 +speex_bits_p...
2004 Aug 06
0
question on usage of the libraries
> Could it be, that if I call > speex_init_header(&header, rate, 1, mode); > with rate set to 22050 that the encoder fails > producing garbage? > I could not find anything in the documentation > on what I should set rate to. JM> No, even if you put garbage in the header, the encoder will still work JM> (though you'd nee...
2004 Aug 06
4
Re: does installed lib support _int()s ?
...gestions though. If there's anything you'd like to see in the API for 1.2, say it now. ...and no, I won't add a speex_do_all_the_work_for_me() call :) Jean-Marc Le dim 16/05/2004 à 16:42, Malcolm Baldridge a écrit : > > How? VERSION isn't included anywhere except in speex_init_header(), > > and I do not see any other symbols that encode the version.... > > Hrm, I take it then that speex_encode_int() exists in both 1.0 and 1.1, > then? I'd assumed that speex_encode_int() only existed in one of them. > Otherwise I've just put my foot in my mouth. :)...
2008 Mar 29
0
GCC/ELF Visibility patch
...nt request, void *ptr) { int i; SpeexPreprocessState *st; Index: libspeex/speex_header.c =================================================================== --- libspeex/speex_header.c (revision 14645) +++ libspeex/speex_header.c (working copy) @@ -83,7 +83,7 @@ } SpeexHeader; */ -void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m) +EXPORT void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m) { int i; const char *h="Speex "; @@ -118,7 +118,7 @@ header->reserved2 = 0; } -char *speex_header_t...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...nt request, void *ptr) { int i; SpeexPreprocessState *st; Index: libspeex/speex_header.c =================================================================== --- libspeex/speex_header.c (revision 14645) +++ libspeex/speex_header.c (working copy) @@ -83,7 +83,7 @@ } SpeexHeader; */ -void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m) +EXPORT void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m) { int i; const char *h="Speex "; @@ -118,7 +118,7 @@ header->reserved2 = 0; } -char *speex_header_t...