summaryrefslogtreecommitdiff
path: root/libs/backends
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-22 19:36:54 +0200
committerRobin Gareus <robin@gareus.org>2016-05-22 19:36:54 +0200
commitafc1186759225f8ee6ced80578e3dc18224076ee (patch)
tree58769bb1fc1776fd824d33dbca517b799cef2251 /libs/backends
parent1b3b42403bf7324b1b35adc7aa7695dcde39c07b (diff)
NO-OP indent
Diffstat (limited to 'libs/backends')
-rw-r--r--libs/backends/dummy/dummy_audiobackend.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc
index 3bbb16878a..0d3567f3e7 100644
--- a/libs/backends/dummy/dummy_audiobackend.cc
+++ b/libs/backends/dummy/dummy_audiobackend.cc
@@ -1724,16 +1724,16 @@ DummyAudioPort::setup_generator (GeneratorType const g, float const samplerate,
break;
case SineWaveOctaves:
{
- const int x = c - floor (((float)total / 2));
- float f = powf (2.f, x / 3.f) * 1000.f;
- f = std::max (10.f, std::min (samplerate *.5f, f));
- const size_t mult = fit_wave (f, samplerate);
- _gen_period = rintf ((float)mult * samplerate / f);
- name = "Sine " + format_hz (samplerate * mult / (float)_gen_period);
- _wavetable = (Sample*) malloc (_gen_period * sizeof(Sample));
- for (uint32_t i = 0 ; i < _gen_period; ++i) {
- _wavetable[i] = .12589f * sinf(2.0f * M_PI * (float)mult * (float)i / (float)(_gen_period)); // -18dBFS
- }
+ const int x = c - floor (((float)total / 2));
+ float f = powf (2.f, x / 3.f) * 1000.f;
+ f = std::max (10.f, std::min (samplerate *.5f, f));
+ const size_t mult = fit_wave (f, samplerate);
+ _gen_period = rintf ((float)mult * samplerate / f);
+ name = "Sine " + format_hz (samplerate * mult / (float)_gen_period);
+ _wavetable = (Sample*) malloc (_gen_period * sizeof(Sample));
+ for (uint32_t i = 0 ; i < _gen_period; ++i) {
+ _wavetable[i] = .12589f * sinf(2.0f * M_PI * (float)mult * (float)i / (float)(_gen_period)); // -18dBFS
+ }
}
break;
case SineWave: