mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix multiple compile errors on older gcc versions
This commit is contained in:
parent
8c99b63a5d
commit
cf39ad4b02
15 changed files with 104 additions and 66 deletions
|
|
@ -22,6 +22,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#include <typeinfo>
|
||||
#include "JuceDemoHeader.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -558,19 +559,18 @@ AudioDeviceManager& MainAppWindow::getSharedAudioDeviceManager()
|
|||
if (sharedAudioDeviceManager == nullptr)
|
||||
{
|
||||
sharedAudioDeviceManager = new AudioDeviceManager();
|
||||
|
||||
RuntimePermissions::request (
|
||||
RuntimePermissions::recordAudio,
|
||||
[] (bool wasGranted) {
|
||||
int numInputChannels = wasGranted ? 2 : 0;
|
||||
sharedAudioDeviceManager->initialise (numInputChannels, 2, nullptr, true, String(), nullptr);
|
||||
}
|
||||
);
|
||||
RuntimePermissions::request (RuntimePermissions::recordAudio, runtimPermissionsCallback);
|
||||
}
|
||||
|
||||
return *sharedAudioDeviceManager;
|
||||
}
|
||||
|
||||
void MainAppWindow::runtimPermissionsCallback (bool wasGranted)
|
||||
{
|
||||
int numInputChannels = wasGranted ? 2 : 0;
|
||||
sharedAudioDeviceManager->initialise (numInputChannels, 2, nullptr, true, String(), nullptr);
|
||||
}
|
||||
|
||||
MainAppWindow* MainAppWindow::getMainAppWindow()
|
||||
{
|
||||
for (int i = TopLevelWindow::getNumTopLevelWindows(); --i >= 0;)
|
||||
|
|
|
|||
|
|
@ -93,6 +93,9 @@ public:
|
|||
};
|
||||
|
||||
private:
|
||||
|
||||
static void runtimPermissionsCallback (bool wasGranted);
|
||||
|
||||
ScopedPointer<ContentComponent> contentComponent;
|
||||
ScopedPointer<Component> taskbarIcon;
|
||||
ScopedPointer<BubbleMessageComponent> currentBubbleMessage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue