Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarVoice.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-19 01:16:47 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-19 01:16:47 +1000
commita9dac1b2dfedcf8a4c4b0322789d30633af80f8b (patch)
tree0b0d1a9487d7dea96dc8943b85f2a102b25fe3ec /source/frontend/StarVoice.hpp
parente1645f37fc72e7733b64c51ffbee0370e13cbe29 (diff)
Detect setting changes loading Voice JSON
Diffstat (limited to 'source/frontend/StarVoice.hpp')
-rw-r--r--source/frontend/StarVoice.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/frontend/StarVoice.hpp b/source/frontend/StarVoice.hpp
index d6bc467..18e677a 100644
--- a/source/frontend/StarVoice.hpp
+++ b/source/frontend/StarVoice.hpp
@@ -147,8 +147,10 @@ public:
private:
static Voice* s_singleton;
void resetEncoder();
+ void resetDevice();
void openDevice();
void closeDevice();
+ inline bool shouldEnableInput() const { return m_enabled && m_inputEnabled; }
bool playSpeaker(SpeakerPtr const& speaker, int channels);