diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-14 18:29:36 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-14 18:29:36 +1000 |
commit | 77e14b5941d420b9f789877fb2c90f1d1a689ad1 (patch) | |
tree | 3b682fe5ca81fae4b64efa393e83b2279c727da3 /source/frontend/StarVoice.hpp | |
parent | 3b38825b34ebb95b59989934dc849858cee42c97 (diff) |
cleanup
Diffstat (limited to 'source/frontend/StarVoice.hpp')
-rw-r--r-- | source/frontend/StarVoice.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/frontend/StarVoice.hpp b/source/frontend/StarVoice.hpp index e7ecd80..8b003e2 100644 --- a/source/frontend/StarVoice.hpp +++ b/source/frontend/StarVoice.hpp @@ -42,7 +42,7 @@ struct VoiceAudioChunk { } inline size_t takeSamples(std::vector<int16_t>& out, size_t count) { - size_t toRead = std::min<size_t>(count, remaining); + size_t toRead = min<size_t>(count, remaining); int16_t* start = data.get() + offset; out.insert(out.end(), start, start + toRead); offset += toRead; @@ -133,9 +133,7 @@ public: // Must be called every frame with input state, expires after 1s. void setInput(bool input = true); - inline int encoderChannels() const { - return m_channelMode == VoiceChannelMode::Mono ? 1 : 2; - } + inline int encoderChannels() const { return (int)m_channelMode; } private: static Voice* s_singleton; |