ios: fix msaudiomixer compilation

parent 28a643d2
......@@ -23,10 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
typedef struct MSAudioMixerCtl{
int pin;
union {
union param_t {
float gain; /**<gain correction */
int active; /**< to mute or unmute the channel */
};
} param;
} MSAudioMixerCtl;
#define MS_AUDIO_MIXER_SET_INPUT_GAIN MS_FILTER_METHOD(MS_AUDIO_MIXER_ID,0,MSAudioMixerCtl)
......
......@@ -256,7 +256,7 @@ static int mixer_set_input_gain(MSFilter *f, void *data){
ms_warning("mixer_set_input_gain: invalid pin number %i",ctl->pin);
return -1;
}
s->channels[ctl->pin].gain=ctl->gain;
s->channels[ctl->pin].gain=ctl->param.gain;
return 0;
}
......@@ -267,7 +267,7 @@ static int mixer_set_active(MSFilter *f, void *data){
ms_warning("mixer_set_active_gain: invalid pin number %i",ctl->pin);
return -1;
}
s->channels[ctl->pin].active=ctl->active;
s->channels[ctl->pin].active=ctl->param.active;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment