NO-OP: whitespace, comments

This commit is contained in:
Robin Gareus 2019-04-08 18:29:04 +02:00
parent 57616fdb11
commit aef75f87b7
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
13 changed files with 81 additions and 79 deletions

View file

@ -120,7 +120,8 @@ class LIBARDOUR_API AudioRegion : public Region
uint32_t chan_n = 0) const; uint32_t chan_n = 0) const;
virtual samplecnt_t master_read_at (Sample *buf, Sample *mixdown_buf, float *gain_buf, virtual samplecnt_t master_read_at (Sample *buf, Sample *mixdown_buf, float *gain_buf,
samplepos_t position, samplecnt_t cnt, uint32_t chan_n=0) const; samplepos_t position, samplecnt_t cnt,
uint32_t chan_n=0) const;
virtual samplecnt_t read_raw_internal (Sample*, samplepos_t, samplecnt_t, int channel) const; virtual samplecnt_t read_raw_internal (Sample*, samplepos_t, samplecnt_t, int channel) const;

View file

@ -1893,15 +1893,15 @@ private:
static const Sample default_click_emphasis[]; static const Sample default_click_emphasis[];
static const samplecnt_t default_click_emphasis_length; static const samplecnt_t default_click_emphasis_length;
Click *get_click(); Click* get_click();
samplepos_t _clicks_cleared; samplepos_t _clicks_cleared;
samplecnt_t _count_in_samples;
void setup_click_sounds (int which); void setup_click_sounds (int which);
void setup_click_sounds (Sample**, Sample const *, samplecnt_t*, samplecnt_t, std::string const &); void setup_click_sounds (Sample**, Sample const *, samplecnt_t*, samplecnt_t, std::string const &);
void clear_clicks (); void clear_clicks ();
void click (samplepos_t start, samplecnt_t nframes); void click (samplepos_t start, samplecnt_t nframes);
void run_click (samplepos_t start, samplecnt_t nframes); void run_click (samplepos_t start, samplecnt_t nframes);
void add_click (samplepos_t pos, bool emphasis); void add_click (samplepos_t pos, bool emphasis);
samplecnt_t _count_in_samples;
/* range playback */ /* range playback */

View file

@ -38,7 +38,7 @@ class Session;
class LIBARDOUR_API Source : public SessionObject class LIBARDOUR_API Source : public SessionObject
{ {
public: public:
enum Flag { enum Flag {
Writable = 0x1, Writable = 0x1,
CanRename = 0x2, CanRename = 0x2,
@ -110,12 +110,13 @@ class LIBARDOUR_API Source : public SessionObject
virtual void dec_use_count (); virtual void dec_use_count ();
int use_count() const { return g_atomic_int_get (const_cast<gint*>(&_use_count)); } int use_count() const { return g_atomic_int_get (const_cast<gint*>(&_use_count)); }
bool used() const { return use_count() > 0; } bool used() const { return use_count() > 0; }
uint32_t level() const { return _level; } uint32_t level() const { return _level; }
std::string ancestor_name() { return _ancestor_name.empty() ? name() : _ancestor_name; } std::string ancestor_name() { return _ancestor_name.empty() ? name() : _ancestor_name; }
void set_ancestor_name(const std::string& name) { _ancestor_name = name; } void set_ancestor_name(const std::string& name) { _ancestor_name = name; }
protected: protected:
DataType _type; DataType _type;
Flag _flags; Flag _flags;
time_t _timestamp; time_t _timestamp;
@ -129,7 +130,7 @@ class LIBARDOUR_API Source : public SessionObject
uint32_t _level; /* how deeply nested is this source w.r.t a disk file */ uint32_t _level; /* how deeply nested is this source w.r.t a disk file */
std::string _ancestor_name; std::string _ancestor_name;
private: private:
void fix_writable_flags (); void fix_writable_flags ();
}; };

View file

@ -3155,7 +3155,7 @@ LV2Plugin::latency_compute_run()
// this is done in the main thread. non realtime. // this is done in the main thread. non realtime.
const samplecnt_t bufsize = _engine.samples_per_cycle(); const samplecnt_t bufsize = _engine.samples_per_cycle();
float *buffer = (float*) malloc(_engine.samples_per_cycle() * sizeof(float)); float* buffer = (float*) malloc(_engine.samples_per_cycle() * sizeof(float));
memset(buffer, 0, sizeof(float) * bufsize); memset(buffer, 0, sizeof(float) * bufsize);

View file

@ -489,10 +489,10 @@ Port::get_connected_latency_range (LatencyRange& range, bool playback) const
} else { } else {
/* port belongs to this instance of ardour, /* port belongs to this instance of ardour,
so look up its latency information * so look up its latency information
internally, because our published/public * internally, because our published/public
values already contain our plugin * values already contain our plugin
latency compensation. * latency compensation.
*/ */
boost::shared_ptr<Port> remote_port = AudioEngine::instance()->get_port_by_name (*c); boost::shared_ptr<Port> remote_port = AudioEngine::instance()->get_port_by_name (*c);