From f85062495c3ee477b7ab38f4de435435aedaf375 Mon Sep 17 00:00:00 2001 From: Saracen Date: Tue, 27 Feb 2018 07:54:56 +0000 Subject: Experimental microphone support. --- drivers/coreaudio/audio_driver_coreaudio.cpp | 22 ++++++++++++++++++++++ drivers/coreaudio/audio_driver_coreaudio.h | 5 +++++ 2 files changed, 27 insertions(+) (limited to 'drivers/coreaudio') diff --git a/drivers/coreaudio/audio_driver_coreaudio.cpp b/drivers/coreaudio/audio_driver_coreaudio.cpp index ac21de91e4..e13b81ddab 100644 --- a/drivers/coreaudio/audio_driver_coreaudio.cpp +++ b/drivers/coreaudio/audio_driver_coreaudio.cpp @@ -434,6 +434,28 @@ void AudioDriverCoreAudio::finish() { } }; +bool AudioDriverCoreAudio::capture_device_start(StringName p_name) { + + return false; +} + +bool AudioDriverCoreAudio::capture_device_stop(StringName p_name) { + + return false; +} + +PoolStringArray AudioDriverCoreAudio::capture_device_get_names() { + + PoolStringArray names; + + return names; +} + +StringName AudioDriverCoreAudio::capture_device_get_default_name() { + + return ""; +} + AudioDriverCoreAudio::AudioDriverCoreAudio() { active = false; mutex = NULL; diff --git a/drivers/coreaudio/audio_driver_coreaudio.h b/drivers/coreaudio/audio_driver_coreaudio.h index 99c910498e..0d3efca28d 100644 --- a/drivers/coreaudio/audio_driver_coreaudio.h +++ b/drivers/coreaudio/audio_driver_coreaudio.h @@ -86,6 +86,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(); + bool try_lock(); void stop(); -- cgit v1.2.3