From ecc1b34cbc2375a57afad822218324d8b88fa721 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Sun, 25 Mar 2018 00:43:51 -0300 Subject: Added new audio device functions to set/get the audio device --- drivers/wasapi/audio_driver_wasapi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/wasapi/audio_driver_wasapi.h') diff --git a/drivers/wasapi/audio_driver_wasapi.h b/drivers/wasapi/audio_driver_wasapi.h index 2b19f0cca1..c97f4c288c 100644 --- a/drivers/wasapi/audio_driver_wasapi.h +++ b/drivers/wasapi/audio_driver_wasapi.h @@ -49,6 +49,9 @@ class AudioDriverWASAPI : public AudioDriver { Mutex *mutex; Thread *thread; + String device_name; + String new_device; + WORD format_tag; WORD bits_per_sample; @@ -80,6 +83,9 @@ public: virtual void start(); virtual int get_mix_rate() const; virtual SpeakerMode get_speaker_mode() const; + virtual Array get_device_list(); + virtual String get_device(); + virtual void set_device(String device); virtual void lock(); virtual void unlock(); virtual void finish(); -- cgit v1.2.3