adds test and default channel for AudioInput
This commit is contained in:
parent
eaca8109f5
commit
f75de3299f
2 changed files with 9 additions and 0 deletions
|
@ -266,6 +266,8 @@ end
|
|||
|
||||
type InputRenderer <: AudioRenderer
|
||||
channel::Int
|
||||
InputRenderer(channel::Integer) = new(channel)
|
||||
InputRenderer() = new(1)
|
||||
end
|
||||
|
||||
function render(node::InputRenderer, device_input::AudioBuf, info::DeviceInfo)
|
||||
|
|
|
@ -123,6 +123,13 @@ facts("SinOSC") do
|
|||
end
|
||||
end
|
||||
|
||||
facts("AudioInput") do
|
||||
node = AudioInput()
|
||||
test_data = rand(AudioSample, test_info.buf_size)
|
||||
render_output = render(node, test_data, test_info)
|
||||
@fact render_output => test_data
|
||||
end
|
||||
|
||||
facts("ArrayPlayer") do
|
||||
context("playing long sample") do
|
||||
v = rand(AudioSample, 44100)
|
||||
|
|
Loading…
Reference in a new issue