diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-06 00:19:48 +0200 |
|---|---|---|
| committer | cah <cth@carlh.net> | 2025-07-10 22:49:00 +0200 |
| commit | 2ebcf5b20531933d0ccab4a508bcc58d4f2db530 (patch) | |
| tree | 3e4698526bd4538ed855dd0d835779370634566c /src/lib/mid_side_decoder.cc | |
| parent | 4be4e97abf911e7633172ada950d107a3ed28834 (diff) | |
White space: mid_side_decoder.{cc,h}
Diffstat (limited to 'src/lib/mid_side_decoder.cc')
| -rw-r--r-- | src/lib/mid_side_decoder.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/mid_side_decoder.cc b/src/lib/mid_side_decoder.cc index d3d85622c..9931b6c35 100644 --- a/src/lib/mid_side_decoder.cc +++ b/src/lib/mid_side_decoder.cc @@ -34,38 +34,38 @@ using std::vector; string -MidSideDecoder::name () const +MidSideDecoder::name() const { return _("Mid-side decoder"); } string -MidSideDecoder::id () const +MidSideDecoder::id() const { return N_("mid-side-decoder"); } int -MidSideDecoder::out_channels () const +MidSideDecoder::out_channels() const { return 3; } shared_ptr<AudioProcessor> -MidSideDecoder::clone (int) const +MidSideDecoder::clone(int) const { return make_shared<MidSideDecoder>(); } shared_ptr<AudioBuffers> -MidSideDecoder::run (shared_ptr<const AudioBuffers> in, int channels) +MidSideDecoder::run(shared_ptr<const AudioBuffers> in, int channels) { - int const N = min (channels, 3); - auto out = make_shared<AudioBuffers>(channels, in->frames ()); + int const N = min(channels, 3); + auto out = make_shared<AudioBuffers>(channels, in->frames()); for (int i = 0; i < in->frames(); ++i) { auto const left = in->data()[0][i]; auto const right = in->data()[1][i]; @@ -82,7 +82,7 @@ MidSideDecoder::run (shared_ptr<const AudioBuffers> in, int channels) } for (int i = N; i < channels; ++i) { - out->make_silent (i); + out->make_silent(i); } return out; @@ -90,18 +90,18 @@ MidSideDecoder::run (shared_ptr<const AudioBuffers> in, int channels) void -MidSideDecoder::make_audio_mapping_default (AudioMapping& mapping) const +MidSideDecoder::make_audio_mapping_default(AudioMapping& mapping) const { /* Just map the first two input channels to our M/S */ - mapping.make_zero (); + mapping.make_zero(); for (int i = 0; i < min(2, mapping.input_channels()); ++i) { - mapping.set (i, i, 1); + mapping.set(i, i, 1); } } vector<NamedChannel> -MidSideDecoder::input_names () const +MidSideDecoder::input_names() const { return { NamedChannel(_("Left"), 0), |
