summaryrefslogtreecommitdiff
path: root/servers/audio/effects/eq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'servers/audio/effects/eq.cpp')
-rw-r--r--servers/audio/effects/eq.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/audio/effects/eq.cpp b/servers/audio/effects/eq.cpp
index bbcf31d5a9..59b3ba2d0b 100644
--- a/servers/audio/effects/eq.cpp
+++ b/servers/audio/effects/eq.cpp
@@ -160,10 +160,12 @@ void EQ::set_preset_band_mode(Preset p_preset) {
int EQ::get_band_count() const {
return band.size();
}
+
float EQ::get_band_frequency(int p_band) {
ERR_FAIL_INDEX_V(p_band, band.size(), 0);
return band[p_band].freq;
}
+
void EQ::set_bands(const Vector<float> &p_bands) {
band.resize(p_bands.size());
for (int i = 0; i < p_bands.size(); i++) {