From a6432821fd8c8ca21a94ded048f6912f26f03cb9 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 20 Jun 2008 10:10:33 +0000 Subject: [PATCH] --- .../juce_win32_DirectSound.cpp | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/build/win32/platform_specific_code/juce_win32_DirectSound.cpp b/build/win32/platform_specific_code/juce_win32_DirectSound.cpp index 79f7a85b90..b87b036b62 100644 --- a/build/win32/platform_specific_code/juce_win32_DirectSound.cpp +++ b/build/win32/platform_specific_code/juce_win32_DirectSound.cpp @@ -1048,32 +1048,7 @@ public: double sampleRate, int bufferSizeSamples) { - BitArray ins, outs; - - if (deviceIndex >= 0) - { - if (outputChannels[0]) - outs.setBit (2 * deviceIndex); - - if (outputChannels[1]) - outs.setBit (2 * deviceIndex + 1); - - if (inputIndex >= 0) - { - if (inputChannels[0]) - ins.setBit (2 * inputIndex); - - if (inputChannels[1]) - ins.setBit (2 * inputIndex + 1); - } - } - else - { - ins = inputChannels; - outs = outputChannels; - } - - lastError = openDevice (ins, outs, sampleRate, bufferSizeSamples); + lastError = openDevice (inputChannels, outputChannels, sampleRate, bufferSizeSamples); isOpen_ = lastError.isEmpty(); return lastError;