Env.
JUCE ver.: 7.0.3
Android Studio Dolphin | 2021.3.1 Patch 1
Gradle Version
7.4
Android Plug-in Version
7.3.1
When I compile my app. Android Studio gives this error:
In file included from D:\Users\eiqil\proiects\iuceProis\GuitarFineTune \JuceLibraryCode\include_1uce_audio_devices.cpp:9:
In file included from
.\JuceLibraryCode\modules\juce_audio_devices\juce_audio_devices.cpp:265: \JuceLibraryCode\modules\juce_audio_devices\native^
s.\juce_android_0penSL.cpp:761:67: error: assigning to ‘const float **’ from ‘const afloat *const *’ discards qualifiers
To solve that I made these changes to juce_android_0penSL.cpp
// eks 6. dec. 2022
// old
//void process(const float** inputChannelData, float** outputChannelData)
//New
void process(const float* const* inputChannelData, float* const* outputChannelData)
{
and
void doSomeWorkOnAudioThread()
{
// only the player or the recorder should enter this section at any time
if (guard.compareAndSetBool(1, 0))
{
// are there enough buffers available to process some audio
if ((inputChannels == 0 || recorder->isBufferAvailable()) && (outputChannels == 0 || player->isBufferAvailable()))
{
T* recorderBuffer = (inputChannels > 0 ? recorder->getNextBuffer() : nullptr);
T* playerBuffer = (outputChannels > 0 ? player->getNextBuffer() : nullptr);
// eks 6. dec. 2022
// old
//const float** inputChannelData = nullptr;
//float** outputChannelData = nullptr;
//New
const float* const* inputChannelData = nullptr;
float* const* outputChannelData = nullptr;
–
Eigil
