From a98432885df8cebf2c3fb024d728451762f0f24b Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 16 Jan 2019 21:55:00 +0000 Subject: [PATCH] Fix for PortAudio with changed API. --- Common/SoundCardReaderWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/SoundCardReaderWriter.cpp b/Common/SoundCardReaderWriter.cpp index 846e640..9cbfab3 100644 --- a/Common/SoundCardReaderWriter.cpp +++ b/Common/SoundCardReaderWriter.cpp @@ -233,7 +233,8 @@ void CSoundCardReaderWriter::callback(const wxFloat32* input, wxFloat32* output, { if (m_callback != NULL) { m_callback->readCallback(input, nSamples, m_id); - m_callback->writeCallback(output, nSamples, m_id); + int count = int(nSamples); + m_callback->writeCallback(output, count, m_id); } }