diff --git a/extras/Projucer/JuceLibraryCode/BinaryData.cpp b/extras/Projucer/JuceLibraryCode/BinaryData.cpp index 096299a5e9..8bf9c4cdda 100644 --- a/extras/Projucer/JuceLibraryCode/BinaryData.cpp +++ b/extras/Projucer/JuceLibraryCode/BinaryData.cpp @@ -5519,7 +5519,7 @@ static const unsigned char temp_binary_data_27[] = " && ! RuntimePermissions::isGranted (RuntimePermissions::recordAudio))\r\n" " {\r\n" " RuntimePermissions::request (RuntimePermissions::recordAudio,\r\n" -" [&] (bool granted) { if (granted) setAudioChannels (2, 2); });\r\n" +" [&] (bool granted) { setAudioChannels (granted ? 2 : 0, 2); });\r\n" " }\r\n" " else\r\n" " {\r\n" @@ -5528,7 +5528,7 @@ static const unsigned char temp_binary_data_27[] = " }\r\n" " }\r\n" "\r\n" -" ~%%content_component_class%%()\r\n" +" ~%%content_component_class%%() override\r\n" " {\r\n" " // This shuts down the audio device and clears the audio source.\r\n" " shutdownAudio();\r\n" @@ -5616,7 +5616,7 @@ static const unsigned char temp_binary_data_28[] = " && ! RuntimePermissions::isGranted (RuntimePermissions::recordAudio))\r\n" " {\r\n" " RuntimePermissions::request (RuntimePermissions::recordAudio,\r\n" -" [&] (bool granted) { if (granted) setAudioChannels (2, 2); });\r\n" +" [&] (bool granted) { setAudioChannels (granted ? 2 : 0, 2); });\r\n" " }\r\n" " else\r\n" " {\r\n" @@ -5704,7 +5704,7 @@ static const unsigned char temp_binary_data_29[] = "public:\r\n" " //==============================================================================\r\n" " %%content_component_class%%();\r\n" -" ~%%content_component_class%%();\r\n" +" ~%%content_component_class%%() override;\r\n" "\r\n" " //==============================================================================\r\n" " void prepareToPlay (int samplesPerBlockExpected, double sampleRate) override;\r\n" @@ -7838,9 +7838,9 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) case 0xd11e6d35: numBytes = 2085; return jucer_AnimatedComponentSimpleTemplate_h; case 0x6cf2645e: numBytes = 1563; return jucer_AnimatedComponentTemplate_cpp; case 0x97b055e3: numBytes = 1201; return jucer_AnimatedComponentTemplate_h; - case 0xfb6f6d96: numBytes = 3693; return jucer_AudioComponentSimpleTemplate_h; + case 0xfb6f6d96: numBytes = 3702; return jucer_AudioComponentSimpleTemplate_h; case 0xafccbd3f: numBytes = 3094; return jucer_AudioComponentTemplate_cpp; - case 0x915d7304: numBytes = 1374; return jucer_AudioComponentTemplate_h; + case 0x915d7304: numBytes = 1383; return jucer_AudioComponentTemplate_h; case 0x27c5a93a: numBytes = 1356; return jucer_AudioPluginEditorTemplate_cpp; case 0x4d0721bf: numBytes = 977; return jucer_AudioPluginEditorTemplate_h; case 0x51b49ac5: numBytes = 6036; return jucer_AudioPluginFilterTemplate_cpp; diff --git a/extras/Projucer/JuceLibraryCode/BinaryData.h b/extras/Projucer/JuceLibraryCode/BinaryData.h index 474d506e9b..85d9f8b033 100644 --- a/extras/Projucer/JuceLibraryCode/BinaryData.h +++ b/extras/Projucer/JuceLibraryCode/BinaryData.h @@ -90,13 +90,13 @@ namespace BinaryData const int jucer_AnimatedComponentTemplate_hSize = 1201; extern const char* jucer_AudioComponentSimpleTemplate_h; - const int jucer_AudioComponentSimpleTemplate_hSize = 3693; + const int jucer_AudioComponentSimpleTemplate_hSize = 3702; extern const char* jucer_AudioComponentTemplate_cpp; const int jucer_AudioComponentTemplate_cppSize = 3094; extern const char* jucer_AudioComponentTemplate_h; - const int jucer_AudioComponentTemplate_hSize = 1374; + const int jucer_AudioComponentTemplate_hSize = 1383; extern const char* jucer_AudioPluginEditorTemplate_cpp; const int jucer_AudioPluginEditorTemplate_cppSize = 1356; diff --git a/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentSimpleTemplate.h b/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentSimpleTemplate.h index d0cba52058..06ba4d807b 100644 --- a/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentSimpleTemplate.h +++ b/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentSimpleTemplate.h @@ -30,7 +30,7 @@ public: && ! RuntimePermissions::isGranted (RuntimePermissions::recordAudio)) { RuntimePermissions::request (RuntimePermissions::recordAudio, - [&] (bool granted) { if (granted) setAudioChannels (2, 2); }); + [&] (bool granted) { setAudioChannels (granted ? 2 : 0, 2); }); } else { @@ -39,7 +39,7 @@ public: } } - ~%%content_component_class%%() + ~%%content_component_class%%() override { // This shuts down the audio device and clears the audio source. shutdownAudio(); diff --git a/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.cpp b/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.cpp index 946bc7bf5c..36461c5d04 100644 --- a/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.cpp +++ b/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.cpp @@ -20,7 +20,7 @@ && ! RuntimePermissions::isGranted (RuntimePermissions::recordAudio)) { RuntimePermissions::request (RuntimePermissions::recordAudio, - [&] (bool granted) { if (granted) setAudioChannels (2, 2); }); + [&] (bool granted) { setAudioChannels (granted ? 2 : 0, 2); }); } else { diff --git a/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.h b/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.h index 99c2590a26..33d583d128 100644 --- a/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.h +++ b/extras/Projucer/Source/BinaryData/Templates/jucer_AudioComponentTemplate.h @@ -20,7 +20,7 @@ class %%content_component_class%% : public AudioAppComponent public: //============================================================================== %%content_component_class%%(); - ~%%content_component_class%%(); + ~%%content_component_class%%() override; //============================================================================== void prepareToPlay (int samplesPerBlockExpected, double sampleRate) override;