diff --git a/examples/Demo/Source/MainWindow.cpp b/examples/Demo/Source/MainWindow.cpp index e3f29ceed9..2426148048 100644 --- a/examples/Demo/Source/MainWindow.cpp +++ b/examples/Demo/Source/MainWindow.cpp @@ -561,7 +561,7 @@ AudioDeviceManager& MainAppWindow::getSharedAudioDeviceManager() RuntimePermissions::request ( RuntimePermissions::recordAudio, - [&] (bool wasGranted) { + [] (bool wasGranted) { int numInputChannels = wasGranted ? 2 : 0; sharedAudioDeviceManager->initialise (numInputChannels, 2, nullptr, true, String(), nullptr); }