search for: float2int16

Displaying 2 results from an estimated 2 matches for "float2int16".

Did you mean: float2int
2013 Jul 08
1
patch to fix error in src/opus_multistream_encoder.c when DISABLE_FLOAT_API is defined
...n_float( - opus_val16 *dst, - int dst_stride, - const void *src, - int src_stride, - int src_channel, - int frame_size -) -{ - const float *float_src; - opus_int32 i; - float_src = (const float *)src; - for (i=0;i<frame_size;i++) -#if defined(FIXED_POINT) - dst[i*dst_stride] = FLOAT2INT16(float_src[i*src_stride+src_channel]); -#else - dst[i*dst_stride] = float_src[i*src_stride+src_channel]; -#endif -} - static void channel_pos(int channels, int pos[8]) { /* Position in the mix: 0 don't mix, 1: left, 2: center, 3:right */ @@ -689,6 +670,27 @@ static void channel_pos...
2009 May 20
1
A (minor) bug and a request
Cheers all. I believe that the first line in the function FLOAT2INT16 in celt.c which is now: x = x*32768.; should be: x = SCALEIN(x); This only makes a difference if you change the SCALEIN and SCALEOUT macros (which I do). The new feature I would like to request is the addition of a CELT_RESET_STATE control for both the encoder and decoder. I cache encoder...