79 |
pEffect2->InputControl(0)->SetValue(0); // Low-shelving gain (0dB) |
pEffect2->InputControl(0)->SetValue(0); // Low-shelving gain (0dB) |
80 |
pEffect2->InputControl(12)->SetValue(0); // High-shelving gain (0dB) |
pEffect2->InputControl(12)->SetValue(0); // High-shelving gain (0dB) |
81 |
|
|
|
dmsg(1,("EQ support: %s\n", pEffectInfo->Description().c_str())); |
|
82 |
break; |
break; |
83 |
} |
} |
84 |
} |
} |
85 |
|
|
86 |
if (pEffect == NULL) { |
if (pEffect == NULL) return; |
|
dmsg(1,("EQ support: no\n")); |
|
|
return; |
|
|
} |
|
87 |
|
|
88 |
Reset(); |
Reset(); |
89 |
} |
} |
90 |
|
|
91 |
|
void EqSupport::PrintInfo() { |
92 |
|
if (!HasSupport()) { |
93 |
|
dmsg(1,("EQ support: no\n")); |
94 |
|
} else { |
95 |
|
dmsg(1,("EQ support: %s\n", pEffect->GetEffectInfo()->Description().c_str())); |
96 |
|
} |
97 |
|
} |
98 |
|
|
99 |
void EqSupport::SetGain(int band, float gain) { |
void EqSupport::SetGain(int band, float gain) { |
100 |
if (!HasSupport()) return; |
if (!HasSupport()) return; |
101 |
if (band < 0 || band >= BandCount) throw Exception("EQ support: invalid band"); |
if (band < 0 || band >= BandCount) throw Exception("EQ support: invalid band"); |