Beispiel #1
0
static int Set( equalizer* p, int No, const void* Data, int Size )
{
	int Result = CodecSet(&p->Codec,No,Data,Size);
	switch (No)
	{
	case EQUALIZER_ENABLED: SETVALUE(p->Enabled,bool_t,UpdateEqualizer()); break;
	case EQUALIZER_ATTENUATE: SETVALUE(p->Attenuate,int,UpdateParam(p)); break;
	case EQUALIZER_PREAMP: SETVALUE(p->Amplify,int,UpdateParam(p)); break;
	case EQUALIZER_1: 
	case EQUALIZER_2: 
	case EQUALIZER_3: 
	case EQUALIZER_4: 
	case EQUALIZER_5: 
	case EQUALIZER_6: 
	case EQUALIZER_7: 
	case EQUALIZER_8: 
	case EQUALIZER_9: 
	case EQUALIZER_10:SETVALUE(p->Eq[No-EQUALIZER_1],int,UpdateParam(p)); break;
	}
	return Result;
}
Beispiel #2
0
void GstEnginePipeline::SetEqualizerParams(int preamp,
                                           const QList<int>& band_gains) {
  eq_preamp_ = preamp;
  eq_band_gains_ = band_gains;
  UpdateEqualizer();
}
Beispiel #3
0
void GstEnginePipeline::SetEqualizerEnabled(bool enabled) {
  eq_enabled_ = enabled;
  UpdateEqualizer();
}