Update nodes.jl

compatibility of union syntax from 0.3 to 0.4
This commit is contained in:
Bill 2015-11-03 09:47:50 -10:00
parent 6786c2b4bb
commit e87ef290a2

View file

@ -13,7 +13,7 @@ end
# Generates a sin tone at the given frequency # Generates a sin tone at the given frequency
type SinOscRenderer{T<:Union(Float32, AudioNode)} <: AudioRenderer @compat type SinOscRenderer{T<:Union{Float32, AudioNode}} <: AudioRenderer
freq::T freq::T
phase::Float32 phase::Float32
buf::AudioBuf buf::AudioBuf
@ -124,7 +124,7 @@ end
Base.push!(mixer::AudioMixer, node::AudioNode) = push!(mixer.renderer.inputs, node) Base.push!(mixer::AudioMixer, node::AudioNode) = push!(mixer.renderer.inputs, node)
#### Gain #### #### Gain ####
type GainRenderer{T<:Union(Float32, AudioNode)} <: AudioRenderer @compat type GainRenderer{T<:Union{Float32, AudioNode}} <: AudioRenderer
in1::AudioNode in1::AudioNode
in2::T in2::T
buf::AudioBuf buf::AudioBuf