diff options
Diffstat (limited to 'src/project.cc')
-rw-r--r-- | src/project.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/project.cc b/src/project.cc index 86100bc..04919db 100644 --- a/src/project.cc +++ b/src/project.cc @@ -106,6 +106,24 @@ void AudioFile::setChannelMapId(int channel_map_id) } } +bool AudioFile::getMainChannel() const +{ + return main_channel; +} + +void AudioFile::setMainChannel(bool main_channel) +{ + if(this->main_channel == main_channel) + { + return; + } + + { + Project::RAIIBulkUpdate bulkUpdate(instrument.getProject()); + this->main_channel = main_channel; + } +} + Instrument::Instrument(Project& project, int id) : id(id) , project(project) |