From dd5d11f4a397768e45e0315e03f1209f98568e2f Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Thu, 11 Jun 2020 03:05:43 +0200 Subject: [PATCH] Allow AudioSpan to accept padded AudioBuffer --- src/sfizz/AudioSpan.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sfizz/AudioSpan.h b/src/sfizz/AudioSpan.h index 8f9f0228..23c9d340 100644 --- a/src/sfizz/AudioSpan.h +++ b/src/sfizz/AudioSpan.h @@ -148,8 +148,8 @@ public: * @tparam Alignment the alignment block size for the platform * @param audioBuffer the source AudioBuffer. */ - template ::type, typename = typename std::enable_if::value, int>::type> - AudioSpan(AudioBuffer& audioBuffer) + template ::type, typename = typename std::enable_if::value, int>::type> + AudioSpan(AudioBuffer& audioBuffer) : numFrames(audioBuffer.getNumFrames()) , numChannels(audioBuffer.getNumChannels()) { @@ -169,8 +169,8 @@ public: * @tparam Alignment the alignment block size for the platform * @param audioBuffer the source AudioBuffer. */ - template > - AudioSpan(AudioBuffer& audioBuffer) + template > + AudioSpan(AudioBuffer& audioBuffer) : numFrames(audioBuffer.getNumFrames()) , numChannels(audioBuffer.getNumChannels()) {