mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Android Oboe: Updated oboe code to match latest Oboe repo version
This commit is contained in:
parent
6fd9b12be1
commit
d77f56bace
1 changed files with 3 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue