diff --git a/libs/ardour/ardour/disk_reader.h b/libs/ardour/ardour/disk_reader.h index b0a6f6a158..46d9c43cb6 100644 --- a/libs/ardour/ardour/disk_reader.h +++ b/libs/ardour/ardour/disk_reader.h @@ -20,6 +20,8 @@ #ifndef __ardour_disk_reader_h__ #define __ardour_disk_reader_h__ +#include "pbd/i18n.h" + #include "ardour/disk_io.h" #include "ardour/midi_buffer.h" @@ -38,6 +40,7 @@ class LIBARDOUR_API DiskReader : public DiskIOProcessor ~DiskReader (); bool set_name (std::string const & str); + std::string display_name() const { return std::string (_("reader")); } static framecnt_t chunk_frames() { return _chunk_frames; } static framecnt_t default_chunk_frames (); diff --git a/libs/ardour/ardour/disk_writer.h b/libs/ardour/ardour/disk_writer.h index 62e18bff9d..6d2683780b 100644 --- a/libs/ardour/ardour/disk_writer.h +++ b/libs/ardour/ardour/disk_writer.h @@ -23,6 +23,8 @@ #include #include +#include "pbd/i18n.h" + #include "ardour/disk_io.h" #include "ardour/midi_buffer.h" @@ -38,6 +40,9 @@ class LIBARDOUR_API DiskWriter : public DiskIOProcessor public: DiskWriter (Session&, std::string const & name, DiskIOProcessor::Flag f = DiskIOProcessor::Flag (0)); + bool set_name (std::string const & str); + std::string display_name() const { return std::string (_("writer")); } + virtual bool set_write_source_name (const std::string& str); bool recordable() const { return _flags & Recordable; } diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 615e37cfbe..5ff7b48e9c 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -1656,3 +1656,16 @@ DiskWriter::realtime_handle_transport_stopped () { realtime_speed_change (); } + +bool +DiskWriter::set_name (string const & str) +{ + string my_name = X_("writer:"); + my_name += str; + + if (_name != my_name) { + SessionObject::set_name (my_name); + } + + return true; +}