From 5d825e7586814d47f29d3b4324effb36c6acd9ed Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Dec 2018 17:00:30 +0100 Subject: Fix s16 FormatConverter output --- src/FormatConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormatConverter.cpp b/src/FormatConverter.cpp index dcfbcf3..0f86d42 100644 --- a/src/FormatConverter.cpp +++ b/src/FormatConverter.cpp @@ -54,7 +54,7 @@ int FormatConverter::process(Buffer* const dataIn, Buffer* dataOut) if (m_format == "s16") { dataOut->setLength(sizeIn * sizeof(int16_t)); - uint16_t* out = reinterpret_cast(dataOut->getData()); + int16_t* out = reinterpret_cast(dataOut->getData()); for (size_t i = 0; i < sizeIn; i++) { out[i] = in[i]; -- cgit v1.2.3