13
0

fix various naming issues with Disk{Reader,Writer}

This commit is contained in:
Paul Davis 2017-06-10 00:41:29 -04:00
parent 0aa5abe6aa
commit 51865535b1
3 changed files with 21 additions and 0 deletions

View File

@ -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 ();

View File

@ -23,6 +23,8 @@
#include <list>
#include <vector>
#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; }

View File

@ -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;
}