Add a view on the effect bus
This commit is contained in:
parent
9d56e5560c
commit
090a5995db
2 changed files with 13 additions and 0 deletions
|
|
@ -810,6 +810,11 @@ const sfz::Region* sfz::Synth::getRegionView(int idx) const noexcept
|
|||
return (size_t)idx < regions.size() ? regions[idx].get() : nullptr;
|
||||
}
|
||||
|
||||
const sfz::EffectBus* sfz::Synth::getEffectBusView(int idx) const noexcept
|
||||
{
|
||||
return (size_t)idx < effectBuses.size() ? effectBuses[idx].get() : nullptr;
|
||||
}
|
||||
|
||||
const sfz::Voice* sfz::Synth::getVoiceView(int idx) const noexcept
|
||||
{
|
||||
return (size_t)idx < voices.size() ? voices[idx].get() : nullptr;
|
||||
|
|
|
|||
|
|
@ -132,6 +132,14 @@ public:
|
|||
* @return const Region*
|
||||
*/
|
||||
const Voice* getVoiceView(int idx) const noexcept;
|
||||
/**
|
||||
* @brief Get a raw view into a specific voice. This is mostly used
|
||||
* for testing.
|
||||
*
|
||||
* @param idx
|
||||
* @return const Region*
|
||||
*/
|
||||
const EffectBus* getEffectBusView(int idx) const noexcept;
|
||||
/**
|
||||
* @brief Get a list of unknown opcodes. The lifetime of the
|
||||
* string views in the code are linked to the currently loaded
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue