From 7cccb28d2b3607800074daadc4108c8a03c45da2 Mon Sep 17 00:00:00 2001 From: Spencer Russell Date: Sat, 30 Jul 2016 02:05:00 -0400 Subject: [PATCH] fixes another allocation when run with inlining off --- src/PortAudio.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PortAudio.jl b/src/PortAudio.jl index e7d45d5..e14d4a7 100644 --- a/src/PortAudio.jl +++ b/src/PortAudio.jl @@ -281,7 +281,7 @@ function portaudio_callback{T}(inptr::Ptr{T}, outptr::Ptr{T}, # TODO: send a notification to an error msg ringbuf # TODO (maybe): we could do a partial write if there's anything in the # ringbuf, and minimize the dropout - memset(outptr, 0, sizeof(T)*nframes*info.outchannels) + memset(outptr, 0, sizeof(T)*outsamples) return paContinue end