|
@@ -30,6 +30,7 @@
|
|
|
|
|
|
#include "audio_stream.h"
|
|
|
#include "core/os/os.h"
|
|
|
+#include "core/project_settings.h"
|
|
|
|
|
|
//////////////////////////////
|
|
|
|
|
@@ -184,6 +185,12 @@ float AudioStreamPlaybackMicrophone::get_stream_sampling_rate() {
|
|
|
}
|
|
|
|
|
|
void AudioStreamPlaybackMicrophone::start(float p_from_pos) {
|
|
|
+
|
|
|
+ if (!GLOBAL_GET("audio/enable_audio_input")) {
|
|
|
+ WARN_PRINTS("Need to enable Project settings > Audio > Enable Audio Input option to use capturing.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
input_ofs = 0;
|
|
|
|
|
|
AudioDriver::get_singleton()->capture_start();
|