mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add AsyncExecutor support to ProcessContext
This commit is contained in:
@@ -177,7 +177,7 @@ impl Plugin for PolyModSynth {
|
||||
&mut self,
|
||||
buffer: &mut Buffer,
|
||||
_aux: &mut AuxiliaryBuffers,
|
||||
context: &mut impl ProcessContext,
|
||||
context: &mut impl ProcessContext<Self>,
|
||||
) -> ProcessStatus {
|
||||
// NIH-plug has a block-splitting adapter for `Buffer`. While this works great for effect
|
||||
// plugins, for polyphonic synths the block size should be `min(MAX_BLOCK_SIZE,
|
||||
@@ -443,7 +443,7 @@ impl PolyModSynth {
|
||||
/// voice will be stolen. Returns a reference to the new voice.
|
||||
fn start_voice(
|
||||
&mut self,
|
||||
context: &mut impl ProcessContext,
|
||||
context: &mut impl ProcessContext<Self>,
|
||||
sample_offset: u32,
|
||||
voice_id: Option<i32>,
|
||||
channel: u8,
|
||||
@@ -544,7 +544,7 @@ impl PolyModSynth {
|
||||
/// matching voices.
|
||||
fn choke_voices(
|
||||
&mut self,
|
||||
context: &mut impl ProcessContext,
|
||||
context: &mut impl ProcessContext<Self>,
|
||||
sample_offset: u32,
|
||||
voice_id: Option<i32>,
|
||||
channel: u8,
|
||||
|
||||
Reference in New Issue
Block a user