Lines Matching refs:stereo
77 SpeexStereoState *stereo = speex_alloc(sizeof(SpeexStereoState)); in speex_stereo_state_init() local
78 speex_stereo_state_reset(stereo); in speex_stereo_state_init()
79 return stereo; in speex_stereo_state_init()
84 RealSpeexStereoState *stereo = (RealSpeexStereoState*)_stereo; in speex_stereo_state_reset() local
86 stereo->balance = 65536; in speex_stereo_state_reset()
87 stereo->e_ratio = 16384; in speex_stereo_state_reset()
88 stereo->smooth_left = 16384; in speex_stereo_state_reset()
89 stereo->smooth_right = 16384; in speex_stereo_state_reset()
90 stereo->reserved1 = 0xdeadbeef; in speex_stereo_state_reset()
91 stereo->reserved2 = 0; in speex_stereo_state_reset()
93 stereo->balance = 1.0f; in speex_stereo_state_reset()
94 stereo->e_ratio = .5f; in speex_stereo_state_reset()
95 stereo->smooth_left = 1.f; in speex_stereo_state_reset()
96 stereo->smooth_right = 1.f; in speex_stereo_state_reset()
97 stereo->reserved1 = 0; in speex_stereo_state_reset()
98 stereo->reserved2 = 0; in speex_stereo_state_reset()
102 EXPORT void speex_stereo_state_destroy(SpeexStereoState *stereo) in speex_stereo_state_destroy() argument
104 speex_free(stereo); in speex_stereo_state_destroy()
226 RealSpeexStereoState *stereo = (RealSpeexStereoState*)_stereo; in speex_decode_stereo() local
228 COMPATIBILITY_HACK(stereo); in speex_decode_stereo()
230 balance=stereo->balance; in speex_decode_stereo()
231 e_ratio=stereo->e_ratio; in speex_decode_stereo()
240 …stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15))… in speex_decode_stereo()
241 …stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15… in speex_decode_stereo()
242 data[2*i] = (float)MULT16_16_P14(stereo->smooth_left, tmp); in speex_decode_stereo()
243 data[2*i+1] = (float)MULT16_16_P14(stereo->smooth_right, tmp); in speex_decode_stereo()
253 RealSpeexStereoState *stereo = (RealSpeexStereoState*)_stereo; in speex_decode_stereo_int() local
255 COMPATIBILITY_HACK(stereo); in speex_decode_stereo_int()
257 balance=stereo->balance; in speex_decode_stereo_int()
258 e_ratio=stereo->e_ratio; in speex_decode_stereo_int()
267 …stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15))… in speex_decode_stereo_int()
268 …stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15… in speex_decode_stereo_int()
269 data[2*i] = (spx_int16_t)MULT16_16_P14(stereo->smooth_left, tmp); in speex_decode_stereo_int()
270 data[2*i+1] = (spx_int16_t)MULT16_16_P14(stereo->smooth_right, tmp); in speex_decode_stereo_int()
276 RealSpeexStereoState *stereo; in speex_std_stereo_request_handler() local
280 stereo = (RealSpeexStereoState*)data; in speex_std_stereo_request_handler()
282 COMPATIBILITY_HACK(stereo); in speex_std_stereo_request_handler()
288 stereo->balance = exp(sign*.25*dexp); in speex_std_stereo_request_handler()
290 stereo->balance = spx_exp(MULT16_16(sign, SHL16(dexp, 9))); in speex_std_stereo_request_handler()
293 stereo->e_ratio = e_ratio_quant[tmp]; in speex_std_stereo_request_handler()