summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2018-02-27 07:54:56 +0000
committerSaracen <SaracenOne@gmail.com>2018-07-27 16:50:09 +0100
commitf85062495c3ee477b7ab38f4de435435aedaf375 (patch)
tree2b1e6f45e8c733e32ebec13a72d6e10e9f65c206 /platform
parent6afabc03350f468b253524d600c978ae3aa66e07 (diff)
Experimental microphone support.
Diffstat (limited to 'platform')
-rw-r--r--platform/android/audio_driver_jandroid.cpp22
-rw-r--r--platform/android/audio_driver_jandroid.h5
-rw-r--r--platform/android/audio_driver_opensl.cpp22
-rw-r--r--platform/android/audio_driver_opensl.h5
4 files changed, 54 insertions, 0 deletions
diff --git a/platform/android/audio_driver_jandroid.cpp b/platform/android/audio_driver_jandroid.cpp
index b9f1f1eab0..561ad106e4 100644
--- a/platform/android/audio_driver_jandroid.cpp
+++ b/platform/android/audio_driver_jandroid.cpp
@@ -195,6 +195,28 @@ void AudioDriverAndroid::finish() {
active = false;
}
+bool AudioDriverAndroid::capture_device_start(StringName p_name) {
+
+ return false;
+}
+
+bool AudioDriverAndroid::capture_device_stop(StringName p_name) {
+
+ return false;
+}
+
+PoolStringArray AudioDriverAndroid::capture_device_get_names() {
+
+ PoolStringArray names;
+
+ return names;
+}
+
+StringName AudioDriverAndroid::capture_device_get_default_name() {
+
+ return "";
+}
+
void AudioDriverAndroid::set_pause(bool p_pause) {
JNIEnv *env = ThreadAndroid::get_env();
diff --git a/platform/android/audio_driver_jandroid.h b/platform/android/audio_driver_jandroid.h
index 763f0e9b5a..a54f0cae6a 100644
--- a/platform/android/audio_driver_jandroid.h
+++ b/platform/android/audio_driver_jandroid.h
@@ -70,6 +70,11 @@ public:
virtual void unlock();
virtual void finish();
+ virtual bool capture_device_start(StringName p_name);
+ virtual bool capture_device_stop(StringName p_name);
+ virtual PoolStringArray capture_device_get_names();
+ virtual StringName capture_device_get_default_name();
+
virtual void set_pause(bool p_pause);
static void setup(jobject p_io);
diff --git a/platform/android/audio_driver_opensl.cpp b/platform/android/audio_driver_opensl.cpp
index 28e3ea962f..38f19d41e9 100644
--- a/platform/android/audio_driver_opensl.cpp
+++ b/platform/android/audio_driver_opensl.cpp
@@ -249,6 +249,28 @@ void AudioDriverOpenSL::finish() {
(*sl)->Destroy(sl);
}
+bool AudioDriverOpenSL::capture_device_start(StringName p_name) {
+
+ return false;
+}
+
+bool AudioDriverOpenSL::capture_device_stop(StringName p_name) {
+
+ return false;
+}
+
+PoolStringArray AudioDriverOpenSL::capture_device_get_names() {
+
+ PoolStringArray names;
+
+ return names;
+}
+
+StringName AudioDriverOpenSL::capture_device_get_default_name() {
+
+ return "";
+}
+
void AudioDriverOpenSL::set_pause(bool p_pause) {
pause = p_pause;
diff --git a/platform/android/audio_driver_opensl.h b/platform/android/audio_driver_opensl.h
index 88cb122414..f3f1939733 100644
--- a/platform/android/audio_driver_opensl.h
+++ b/platform/android/audio_driver_opensl.h
@@ -98,6 +98,11 @@ public:
virtual void unlock();
virtual void finish();
+ virtual bool capture_device_start(StringName p_name);
+ virtual bool capture_device_stop(StringName p_name);
+ virtual PoolStringArray capture_device_get_names();
+ virtual StringName capture_device_get_default_name();
+
virtual void set_pause(bool p_pause);
AudioDriverOpenSL();