Class: Deftones::Component::Split::OutputTap

Inherits:
Deftones::Core::AudioNode show all
Defined in:
lib/deftones/component/split.rb

Instance Attribute Summary

Attributes inherited from Deftones::Core::AudioNode

#context, #input

Instance Method Summary collapse

Methods inherited from Deftones::Core::AudioNode

#>>, #attach_destination, #attach_source, #block_time, #chain, #channel_count, #channel_count_mode, #channel_interpretation, #connect, #connected?, #default_input_channels, #default_output_channels, #destination_for_connection, #detach_all_destinations, #detach_destination, #detach_source, #disconnect, #dispose, #disposed?, #fan, #get, #immediate, #input_for_index, #inputs, #mix_source_blocks, #multichannel_process?, #name, #normalize_connection_index, #normalize_output_block, #now, #number_of_inputs, #number_of_outputs, #output, #output_for_connection, #output_for_index, #outputs, #process, #raise_connection_index_error!, #reaches_node?, #sample_time, #set, #to_destination, #to_frequency, #to_master, #to_midi, #to_output, #to_s, #to_seconds, #to_ticks, #uses_legacy_render_for_block?, #validate_connectable!, #validate_connection_index!

Constructor Details

#initialize(parent:, channel:, context: Deftones.context) ⇒ OutputTap

Returns a new instance of OutputTap.



45
46
47
48
49
# File 'lib/deftones/component/split.rb', line 45

def initialize(parent:, channel:, context: Deftones.context)
  super(context: context)
  @parent = parent
  @channel = channel
end

Instance Method Details

#render(num_frames, start_frame = 0, cache = {}) ⇒ Object



55
56
57
# File 'lib/deftones/component/split.rb', line 55

def render(num_frames, start_frame = 0, cache = {})
  @parent.render_channel(@channel, num_frames, start_frame, cache)
end

#render_block(num_frames, start_frame = 0, cache = {}) ⇒ Object



51
52
53
# File 'lib/deftones/component/split.rb', line 51

def render_block(num_frames, start_frame = 0, cache = {})
  @parent.render_channel_block(@channel, num_frames, start_frame, cache)
end