From 494f28601c3382b33fd51228503ba7e2169b6857 Mon Sep 17 00:00:00 2001 From: Julian Storer Date: Mon, 11 Jan 2010 09:34:11 +0000 Subject: [PATCH] Fixed a typo in the ASIO code in the last check-in. --- juce_amalgamated.cpp | 4 ++-- src/native/windows/juce_win32_ASIO.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index 558a283a79..cba1f336ed 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -246811,7 +246811,7 @@ private: { while (--numSamples >= 0) { - *(uint32*) dest = ByteOrder::swap ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); + *(uint32*) dest = ByteOrder::swapIfBigEndian ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); dest += dstStrideBytes; } } @@ -246819,7 +246819,7 @@ private: { while (--numSamples >= 0) { - *(uint32*) dest = ByteOrder::swap ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); + *(uint32*) dest = ByteOrder::swapIfLittleEndian ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); dest += dstStrideBytes; } } diff --git a/src/native/windows/juce_win32_ASIO.cpp b/src/native/windows/juce_win32_ASIO.cpp index 659a01bd89..6c5c322883 100644 --- a/src/native/windows/juce_win32_ASIO.cpp +++ b/src/native/windows/juce_win32_ASIO.cpp @@ -1596,7 +1596,7 @@ private: { while (--numSamples >= 0) { - *(uint32*) dest = ByteOrder::swap ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); + *(uint32*) dest = ByteOrder::swapIfBigEndian ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); dest += dstStrideBytes; } } @@ -1604,7 +1604,7 @@ private: { while (--numSamples >= 0) { - *(uint32*) dest = ByteOrder::swap ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); + *(uint32*) dest = ByteOrder::swapIfLittleEndian ((uint32) roundDoubleToInt (jlimit (-maxVal, maxVal, maxVal * *src++))); dest += dstStrideBytes; } }