diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-19 01:16:47 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-19 01:16:47 +1000 |
commit | a9dac1b2dfedcf8a4c4b0322789d30633af80f8b (patch) | |
tree | 0b0d1a9487d7dea96dc8943b85f2a102b25fe3ec /source/frontend/StarVoice.hpp | |
parent | e1645f37fc72e7733b64c51ffbee0370e13cbe29 (diff) |
Detect setting changes loading Voice JSON
Diffstat (limited to 'source/frontend/StarVoice.hpp')
-rw-r--r-- | source/frontend/StarVoice.hpp | 2 |
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); |