Browse Source

Android Oboe: Updated oboe code to match latest Oboe repo version

tags/2021-05-28
hogliux 7 years ago
parent
commit
d77f56bace
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      modules/juce_audio_devices/native/juce_android_Oboe.cpp

+ 3
- 4
modules/juce_audio_devices/native/juce_android_Oboe.cpp View File

@@ -676,7 +676,6 @@ private:
ignoreUnused (deviceId, numChannels, sampleRate, bufferSize);
ignoreUnused (streamFormat, bitDepth);
jassert (deviceId = nativeStream->getDeviceId());
jassert (numChannels = nativeStream->getChannelCount());
jassert (sampleRate == nativeStream->getSampleRate());
jassert (format == nativeStream->getFormat());
@@ -797,13 +796,13 @@ private:
auto result = inputStream->getNativeStream()->read (inputStreamNativeBuffer.getData(), numFrames, 0);
if (result >= 0)
if (result)
{
OboeAudioIODeviceBufferHelpers<SampleType>::referAudioBufferDirectlyToOboeIfPossible (inputStreamNativeBuffer.get(),
inputStreamSampleBuffer,
result);
result.value());
OboeAudioIODeviceBufferHelpers<SampleType>::convertFromOboe (inputStreamNativeBuffer.get(), inputStreamSampleBuffer, result);
OboeAudioIODeviceBufferHelpers<SampleType>::convertFromOboe (inputStreamNativeBuffer.get(), inputStreamSampleBuffer, result.value());
}
else
{


Loading…
Cancel
Save