diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-09-03 14:08:41 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-09-03 14:08:41 +0200 |
commit | 1c25d3a69ac27dc1f93bca3a71996e757b452c4b (patch) | |
tree | a67541f62bd35577003f812b35ab6a35098e36ae /src/audiofile.h | |
parent | a359d234ff53bcdab671faa169f45c4f14f5575d (diff) |
Add bleed controls for the drumkit with priority over those set in the instrument files.
Diffstat (limited to 'src/audiofile.h')
-rw-r--r-- | src/audiofile.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/audiofile.h b/src/audiofile.h index 5d6cdae..d73dad8 100644 --- a/src/audiofile.h +++ b/src/audiofile.h @@ -35,11 +35,15 @@ #include <sndfile.h> #include "audio.h" +#include "channel.h" + +class InstrumentChannel; class AudioFile { public: - AudioFile(const std::string& filename, std::size_t filechannel, bool main = true); + AudioFile(const std::string& filename, std::size_t filechannel, + InstrumentChannel* instrument_channel = nullptr); ~AudioFile(); void load(std::size_t sample_limit = std::numeric_limits<std::size_t>::max()); @@ -55,13 +59,16 @@ public: bool isValid() const; + //! Returns if this audio file is to be played on a main channel (ie. not a + //! secondary channel) + main_state_t mainState() const; + std::mutex mutex; std::size_t filechannel; - bool main; - private: void* magic{nullptr}; volatile bool is_loaded{false}; + InstrumentChannel* instrument_channel; }; |