diff --git a/src/nodes.jl b/src/nodes.jl index ca496f2..0f142b1 100644 --- a/src/nodes.jl +++ b/src/nodes.jl @@ -228,7 +228,7 @@ function play(arr::AudioBuf, args...) end # If the array is the wrong floating type, convert it -function play{T <: FloatingPoint}(arr::Array{T}, args...) +@compat function play{T <: AbstractFloat}(arr::Array{T}, args...) arr = convert(AudioBuf, arr) play(arr, args...) end