search for: speexstereostate

Displaying 11 results from an estimated 11 matches for "speexstereostate".

2017 Nov 03
1
[PATCH] Add a (void) parameter list to a function declaration
...;. --- include/speex/speex_stereo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/speex/speex_stereo.h b/include/speex/speex_stereo.h index 5844f5a1..12af2bbf 100644 --- a/include/speex/speex_stereo.h +++ b/include/speex/speex_stereo.h @@ -61,7 +61,7 @@ typedef struct SpeexStereoState { #define SPEEX_STEREO_STATE_INIT {1,.5,1,1,0,0} /** Initialise/create a stereo stereo state */ -SpeexStereoState *speex_stereo_state_init(); +SpeexStereoState *speex_stereo_state_init(void); /** Reset/re-initialise an already allocated stereo state */ void speex_stereo_state_reset(SpeexSte...
2006 Jun 12
1
[PATCH] warning: missing initializer for SPEEX_STEREO_STATE_INIT
hi this code gives me a warning: SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT; modules/speex/mod.c: In function 'alloc': modules/speex/mod.c:61: warning: missing initializer modules/speex/mod.c:61: warning: (near initialization for 'stereo_init.reserved1') would it be possible to add this patch to you svn ? Index: incl...
2008 Mar 29
0
GCC/ELF Visibility patch
...t char *speex_resampler_strerror(int err) { switch (err) { Index: libspeex/stereo.c =================================================================== --- libspeex/stereo.c (revision 14645) +++ libspeex/stereo.c (working copy) @@ -72,14 +72,14 @@ #define COMPATIBILITY_HACK(s) #endif -SpeexStereoState *speex_stereo_state_init() +EXPORT SpeexStereoState *speex_stereo_state_init() { SpeexStereoState *stereo = speex_alloc(sizeof(SpeexStereoState)); speex_stereo_state_reset(stereo); return stereo; } -void speex_stereo_state_reset(SpeexStereoState *_stereo) +EXPORT void speex_stereo_s...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...t char *speex_resampler_strerror(int err) { switch (err) { Index: libspeex/stereo.c =================================================================== --- libspeex/stereo.c (revision 14645) +++ libspeex/stereo.c (working copy) @@ -72,14 +72,14 @@ #define COMPATIBILITY_HACK(s) #endif -SpeexStereoState *speex_stereo_state_init() +EXPORT SpeexStereoState *speex_stereo_state_init() { SpeexStereoState *stereo = speex_alloc(sizeof(SpeexStereoState)); speex_stereo_state_reset(stereo); return stereo; } -void speex_stereo_state_reset(SpeexStereoState *_stereo) +EXPORT void speex_stereo_s...
2007 Apr 02
1
Problems with stereo data
...r* argv[]) { FILE* fin = fopen(argv[1], "rb"); FILE* fout = fopen(argv[2], "wb"); void* State = speex_decoder_init(&speex_wb_mode); SpeexBits Bits; speex_bits_init(&Bits); const int FrameSize = 320; short Output[FrameSize]; short BytesToRead; char Buffer[1024]; SpeexStereoState StereoState = SPEEX_STEREO_STATE_INIT; while (!feof(fin)) { fread(&BytesToRead, sizeof(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, &Ste...
2014 May 16
3
Error when compiling FFmpeg with speex-git.
.../user/build/include/speex/speex_config_types.h:15:1: error: unknown type name ?uint32_t? typedef uint32_t spx_uint32_t; ^ In file included from libavcodec/libspeexdec.c:23:0: /home/user/build/include/speex/speex_stereo.h:64:1: warning: function declaration isn?t a prototype [-Wstrict-prototypes] SpeexStereoState *speex_stereo_state_init(); ^ libavcodec/libspeexdec.c: In function ?libspeex_decode_frame?: libavcodec/libspeexdec.c:153:5: warning: passing argument 3 of ?speex_decode_int? from incompatible pointer type [enabled by default] ret = speex_decode_int(s->dec_state, &s->bits, output);...
2004 Aug 06
2
SPEEX_SET_USER_HANDLER once again
...buff == NULL || buf_size == 0) return -1; memset(bits, 0, sizeof(SpeexBits)); bits->bytes = (char*)buff; bits->buf_size = buf_size; bits->nbBits=buf_size << 3; return 0; } int CSpeexDecoderThread::DecodePlay(void* state, SpeexStereoState stereo, char* pcData, DWORD dwLength, int nchannels, int frame_size, int ynccount){ ... if (synccount > 0){ callback.callback_id = 0; callback.func = SpeexUserCallback; callback.data = this; speex_dec...
2004 Aug 06
0
SPEEX_SET_USER_HANDLER once again
...> > memset(bits, 0, sizeof(SpeexBits)); > > bits->bytes = (char*)buff; > bits->buf_size = buf_size; > bits->nbBits=buf_size << 3; > > return 0; > } > > int CSpeexDecoderThread::DecodePlay(void* state, SpeexStereoState > stereo, > char* pcData, DWORD dwLength, int nchannels, int frame_size, > int > synccount){ > > ... > > if (synccount > 0){ > callback.callback_id = 0; > callback.func = SpeexUserCallback; >...
2008 Apr 04
0
speexdec 1.2.3
...ot;speexdec version %s\n", speex_version); printf ("Copyright (C) 2002-2006 Jean-Marc Valin\n"); } static void *process_header(ogg_packet *op, spx_int32_t enh_enabled, spx_int32_t *frame_size, int *granule_frame_size, spx_int32_t *rate, int *nframes, int forceMode, int *channels, SpeexStereoState *stereo, int *extra_headers, int quiet) { void *st; const SpeexMode *mode; SpeexHeader *header; int modeID; SpeexCallback callback; header = speex_packet_to_header((char*)op->packet, op->bytes); if (!header) { fprintf (stderr, "Cannot read header\n&qu...
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
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any