From 4dc63966f0872efe768dad61eb9b8785d06b92d1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 4 Oct 2015 14:51:05 -0400 Subject: globally remove all trailing whitespace from ardour code base. Paul Davis was responsible for introducing almost all of this. --- libs/ardour/test/framepos_minus_beats_test.cc | 10 +++++----- libs/ardour/test/framepos_plus_beats_test.cc | 10 +++++----- libs/ardour/test/framewalk_to_beats_test.cc | 8 ++++---- libs/ardour/test/interpolation_test.cc | 2 +- libs/ardour/test/midi_clock_slave_test.cc | 4 ++-- libs/ardour/test/midi_clock_slave_test.h | 26 +++++++++++++------------- libs/ardour/test/tempo_test.cc | 4 ++-- 7 files changed, 32 insertions(+), 32 deletions(-) (limited to 'libs/ardour/test') diff --git a/libs/ardour/test/framepos_minus_beats_test.cc b/libs/ardour/test/framepos_minus_beats_test.cc index cc6341fb0b..a96fec6531 100644 --- a/libs/ardour/test/framepos_minus_beats_test.cc +++ b/libs/ardour/test/framepos_minus_beats_test.cc @@ -46,14 +46,14 @@ FrameposMinusBeatsTest::doubleTempoTest () /* 120bpm at bar 1, 240bpm at bar 4 - + 120bpm = 24e3 samples per beat 240bpm = 12e3 samples per beat */ /* - + 120bpm 240bpm 0 beats 12 beats 0 frames 288e3 frames @@ -86,7 +86,7 @@ FrameposMinusBeatsTest::doubleTempoTest () tempo change (which shouldn't affect anything, since we are just dealing with beats) */ - + void FrameposMinusBeatsTest::doubleTempoWithMeterTest () { @@ -98,14 +98,14 @@ FrameposMinusBeatsTest::doubleTempoWithMeterTest () /* 120bpm at bar 1, 240bpm at bar 4 - + 120bpm = 24e3 samples per beat 240bpm = 12e3 samples per beat */ /* - + 120bpm 240bpm 0 beats 12 beats 0 frames 288e3 frames diff --git a/libs/ardour/test/framepos_plus_beats_test.cc b/libs/ardour/test/framepos_plus_beats_test.cc index efc57c5872..7069c54115 100644 --- a/libs/ardour/test/framepos_plus_beats_test.cc +++ b/libs/ardour/test/framepos_plus_beats_test.cc @@ -45,14 +45,14 @@ FrameposPlusBeatsTest::doubleTempoTest () /* 120bpm at bar 1, 240bpm at bar 4 - + 120bpm = 24e3 samples per beat 240bpm = 12e3 samples per beat */ /* - + 120bpm 240bpm 0 beats 12 beats 0 frames 288e3 frames @@ -85,7 +85,7 @@ FrameposPlusBeatsTest::doubleTempoTest () tempo change (which shouldn't affect anything, since we are just dealing with beats) */ - + void FrameposPlusBeatsTest::doubleTempoWithMeterTest () { @@ -97,14 +97,14 @@ FrameposPlusBeatsTest::doubleTempoWithMeterTest () /* 120bpm at bar 1, 240bpm at bar 4 - + 120bpm = 24e3 samples per beat 240bpm = 12e3 samples per beat */ /* - + 120bpm 240bpm 0 beats 12 beats 0 frames 288e3 frames diff --git a/libs/ardour/test/framewalk_to_beats_test.cc b/libs/ardour/test/framewalk_to_beats_test.cc index bcbd3e089f..501eca894e 100644 --- a/libs/ardour/test/framewalk_to_beats_test.cc +++ b/libs/ardour/test/framewalk_to_beats_test.cc @@ -51,14 +51,14 @@ FramewalkToBeatsTest::doubleTempoTest () /* 120bpm at bar 1, 240bpm at bar 4 - + 120bpm = 24e3 samples per beat 240bpm = 12e3 samples per beat */ /* - + 120bpm 240bpm 0 beats 12 beats 0 frames 288e3 frames @@ -107,7 +107,7 @@ FramewalkToBeatsTest::tripleTempoTest () /* 120bpm at bar 1, 240bpm at bar 2, 160bpm at bar 3 - + 120bpm = 24e3 samples per beat 160bpm = 18e3 samples per beat 240bpm = 12e3 samples per beat @@ -115,7 +115,7 @@ FramewalkToBeatsTest::tripleTempoTest () /* - + 120bpm 240bpm 160bpm 0 beats 4 beats 8 beats 0 frames 96e3 frames 144e3 frames diff --git a/libs/ardour/test/interpolation_test.cc b/libs/ardour/test/interpolation_test.cc index e8ed22d03b..7a91160e7a 100644 --- a/libs/ardour/test/interpolation_test.cc +++ b/libs/ardour/test/interpolation_test.cc @@ -82,7 +82,7 @@ InterpolationTest::linearInterpolationTest () } /* for (int i=0; i < NUM_SAMPLES; ++i) { - cout << i << " " << output[i] << endl; + cout << i << " " << output[i] << endl; } */ } diff --git a/libs/ardour/test/midi_clock_slave_test.cc b/libs/ardour/test/midi_clock_slave_test.cc index 4349df22eb..cea7a06ce9 100644 --- a/libs/ardour/test/midi_clock_slave_test.cc +++ b/libs/ardour/test/midi_clock_slave_test.cc @@ -24,11 +24,11 @@ MIDIClock_SlaveTest::testStepResponse () start (*parser, start_time); update_midi_clock (*parser, start_time); - + for (framecnt_t i = 1; i<= 100 * period_size; i++) { // simulate jitter framecnt_t input_delta = framecnt_t (one_ppqn_in_frames + 0.1 * (double(g_random_int()) / double (RAND_MAX)) * one_ppqn_in_frames); - + if (i % input_delta == 0) { update_midi_clock (*parser, start_time + i); } diff --git a/libs/ardour/test/midi_clock_slave_test.h b/libs/ardour/test/midi_clock_slave_test.h index 56bda2ba58..dd046fb8a8 100644 --- a/libs/ardour/test/midi_clock_slave_test.h +++ b/libs/ardour/test/midi_clock_slave_test.h @@ -1,16 +1,16 @@ -/* +/* * Copyright(C) 2000-2008 Paul Davis * Author: Hans Baier - * + * * Evoral is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or(at your option) any later * version. - * + * * Evoral is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -39,9 +39,9 @@ class TestSlaveSessionProxy : public ISlaveSessionProxy { Meter meter; public: - TestSlaveSessionProxy() : - transport_speed (1.0), - _transport_frame (0), + TestSlaveSessionProxy() : + transport_speed (1.0), + _transport_frame (0), _frame_time (1000000), _tempo_map (0), tempo (120), @@ -49,14 +49,14 @@ class TestSlaveSessionProxy : public ISlaveSessionProxy { { _tempo_map = new TempoMap (FRAME_RATE); _tempo_map->add_tempo (tempo, Timecode::BBT_Time(1, 1, 0)); - _tempo_map->add_meter (meter, Timecode::BBT_Time(1, 1, 0)); + _tempo_map->add_meter (meter, Timecode::BBT_Time(1, 1, 0)); } // Controlling the mock object void set_period_size (framecnt_t a_size) { _period_size = a_size; } framecnt_t period_size () const { return _period_size; } - void next_period () { - _transport_frame += double(_period_size) * double(transport_speed); + void next_period () { + _transport_frame += double(_period_size) * double(transport_speed); _frame_time += _period_size; } @@ -68,8 +68,8 @@ class TestSlaveSessionProxy : public ISlaveSessionProxy { pframes_t frames_since_cycle_start () const { return 0; } framepos_t frame_time () const { return _frame_time; } - void request_locate (framepos_t frame, bool with_roll = false) { - _transport_frame = frame; + void request_locate (framepos_t frame, bool with_roll = false) { + _transport_frame = frame; } void request_transport_speed (const double speed) { transport_speed = speed; } @@ -86,7 +86,7 @@ class MIDIClock_SlaveTest : public CppUnit::TestFixture, ARDOUR::MIDIClock_Slave void setUp() { } - + void tearDown() { } diff --git a/libs/ardour/test/tempo_test.cc b/libs/ardour/test/tempo_test.cc index fa9ad0a520..2cac1fa872 100644 --- a/libs/ardour/test/tempo_test.cc +++ b/libs/ardour/test/tempo_test.cc @@ -18,14 +18,14 @@ TempoTest::recomputeMapTest () /* 120bpm at bar 1, 240bpm at bar 4 - + 120bpm = 24e3 samples per beat 240bpm = 12e3 samples per beat */ /* - + 120bpm 240bpm 0 beats 12 beats 0 frames 288e3 frames -- cgit v1.2.3