mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Remove dsp_has_midi_*() in favor of dsp_ioconfig()
_has_midi_*put members of LuaProc will be set according to the actual configuration chosen, for configure_io() and run() to use.
This commit is contained in:
parent
82e1ef5fb0
commit
66470b96b7
6 changed files with 17 additions and 50 deletions
|
|
@ -10,14 +10,10 @@ ardour {
|
|||
-- return possible audio i/o configurations
|
||||
function dsp_ioconfig ()
|
||||
-- -1, -1 = any number of channels as long as input and output count matches
|
||||
return { { audio_in = -1, audio_out = -1}, }
|
||||
-- require 1 MIDI in, 1 MIDI out.
|
||||
return { { midi_in = 1, midi_out = 1, audio_in = -1, audio_out = -1}, }
|
||||
end
|
||||
|
||||
-- require 1 MIDI in, 1 MIDI out.
|
||||
function dsp_has_midi_input () return true end
|
||||
function dsp_has_midi_output () return true end
|
||||
|
||||
|
||||
-- "dsp_runmap" uses Ardour's internal processor API, eqivalent to
|
||||
-- 'connect_and_run()". There is no overhead (mapping, translating buffers).
|
||||
-- The lua implementation is responsible to map all the buffers directly.
|
||||
|
|
@ -91,7 +87,8 @@ function dsp_runmap (bufs, in_map, out_map, n_samples, offset)
|
|||
local midi_ins = in_map:count (): n_midi () -- number of midi input buffers
|
||||
local midi_outs = out_map:count (): n_midi () -- number of midi input buffers
|
||||
|
||||
-- with dsp_has_midi_in/out() the following will always be true
|
||||
-- with midi_in=1, midi_out=1 in dsp_ioconfig
|
||||
-- the following will always be true
|
||||
assert (midi_ins == 1)
|
||||
assert (midi_outs == 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue