/*
* Copyright (C) 2002-2006 Jean-Marc Valin
- * Copyright (C) 2010 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2010 Andre Noll <maan@tuebingen.mpg.de>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* \return Standard.
*/
-int spx_ctl(void *state, int request, void *ptr)
+static int spx_ctl(void *state, int request, void *ptr)
{
int ret = speex_decoder_ctl(state, request, ptr);
shi->nframes = h->frames_per_packet;
shi->channels = h->nb_channels;
if (shi->channels != 1) {
- shi->stereo = (SpeexStereoState)SPEEX_STEREO_STATE_INIT;
SpeexCallback callback = {
.callback_id = SPEEX_INBAND_STEREO,
.func = speex_std_stereo_request_handler,
.data = &shi->stereo,
};
+ shi->stereo = (SpeexStereoState)SPEEX_STEREO_STATE_INIT;
ret = spx_ctl(shi->state, SPEEX_SET_HANDLER, &callback);
if (ret < 0)
goto out;