From 5aa4d95f5940991fcafc81e29fdd042c82ca6a66 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 2 Dec 2011 19:53:33 +0000 Subject: rename a Buffer/BufferSet method to be a little clearer as to its intent (is_silent(bool) => set_is_silent(bool)) git-svn-id: svn://localhost/ardour2/branches/3.0@10867 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/buffer.h | 2 +- libs/ardour/ardour/buffer_set.h | 2 +- libs/ardour/buffer_set.cc | 4 ++-- libs/ardour/plugin_insert.cc | 2 +- libs/ardour/route.cc | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'libs') diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h index 15e97ccc10..c6f6822519 100644 --- a/libs/ardour/ardour/buffer.h +++ b/libs/ardour/ardour/buffer.h @@ -64,7 +64,7 @@ public: DataType type() const { return _type; } bool silent() const { return _silent; } - void is_silent(bool yn) { _silent = yn; } + void set_is_silent(bool yn) { _silent = yn; } /** Reallocate the buffer used internally to handle at least @a size_t units of data. * diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h index b64cdb7b60..4db1c34557 100644 --- a/libs/ardour/ardour/buffer_set.h +++ b/libs/ardour/ardour/buffer_set.h @@ -85,7 +85,7 @@ public: const ChanCount& count() const { return _count; } ChanCount& count() { return _count; } - void is_silent(bool yn); + void set_is_silent(bool yn); void silence (framecnt_t nframes, framecnt_t offset); bool is_mirror() const { return _is_mirror; } diff --git a/libs/ardour/buffer_set.cc b/libs/ardour/buffer_set.cc index 4fc335a080..36d9787374 100644 --- a/libs/ardour/buffer_set.cc +++ b/libs/ardour/buffer_set.cc @@ -434,11 +434,11 @@ BufferSet::silence (framecnt_t nframes, framecnt_t offset) } void -BufferSet::is_silent (bool yn) +BufferSet::set_is_silent (bool yn) { for (std::vector::iterator i = _buffers.begin(); i != _buffers.end(); ++i) { for (BufferVec::iterator b = i->begin(); b != i->end(); ++b) { - (*b)->is_silent (yn); + (*b)->set_is_silent (yn); } } diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index b7c338aa20..dd9e8d5dcf 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -508,7 +508,7 @@ PluginInsert::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end * all buffers appropriately. */ - bufs.is_silent (false); + bufs.set_is_silent (false); } void diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index adeda63972..46bc9b7696 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -402,7 +402,7 @@ Route::process_output_buffers (BufferSet& bufs, { bool monitor = should_monitor (); - bufs.is_silent (false); + bufs.set_is_silent (false); /* figure out if we're going to use gain automation */ if (gain_automation_ok) { -- cgit v1.2.3