From 77e14b5941d420b9f789877fb2c90f1d1a689ad1 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 14 Jul 2023 18:29:36 +1000 Subject: cleanup --- source/frontend/StarVoice.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/frontend/StarVoice.hpp') 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& out, size_t count) { - size_t toRead = std::min(count, remaining); + size_t toRead = min(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; -- cgit v1.2.3