Update nodes.jl
compatibility of union syntax from 0.3 to 0.4
This commit is contained in:
parent
6786c2b4bb
commit
e87ef290a2
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ end
|
|||
|
||||
# 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
|
||||
phase::Float32
|
||||
buf::AudioBuf
|
||||
|
@ -124,7 +124,7 @@ end
|
|||
Base.push!(mixer::AudioMixer, node::AudioNode) = push!(mixer.renderer.inputs, node)
|
||||
|
||||
#### Gain ####
|
||||
type GainRenderer{T<:Union(Float32, AudioNode)} <: AudioRenderer
|
||||
@compat type GainRenderer{T<:Union{Float32, AudioNode}} <: AudioRenderer
|
||||
in1::AudioNode
|
||||
in2::T
|
||||
buf::AudioBuf
|
||||
|
|
Loading…
Reference in a new issue