ports AudioInput to new type structure

This commit is contained in:
Spencer Russell 2014-06-23 18:48:01 -04:00
parent afe4e0d8be
commit 9312fa745d

View file

@ -150,22 +150,19 @@ function play{T <: Unsigned}(arr::Array{T}, args...)
play(arr, args...) play(arr, args...)
end end
##### AudioInput #### #### AudioInput ####
#
## Renders incoming audio input from the hardware # Renders incoming audio input from the hardware
#
#export AudioInput type InputRenderer <: AudioRenderer
#type AudioInput <: AudioNode channel::Int
# active::Bool end
# deactivate_cond::Condition
# channel::Int function render(node::InputRenderer, device_input::AudioBuf, info::DeviceInfo)
# @assert size(device_input, 1) == info.buf_size
# function AudioInput(channel::Int) return device_input[:, node.channel]
# new(false, Condition(), channel) end
# end
#end typealias AudioInput AudioNode{InputRenderer}
# AudioInput(channel::Int) = AudioInput(InputRenderer(channel))
#function render(node::AudioInput, device_input::AudioBuf, info::DeviceInfo) export AudioInput
# @assert size(device_input, 1) == info.buf_size
# return device_input[:, node.channel], is_active(node)
#end