Skip to content

Commit

Permalink
Stop clamping channel count to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Jan 16, 2025
1 parent 4d07a4f commit db4aea6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/audio/AudioPortAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
namespace lmms {

AudioPortAudio::AudioPortAudio(bool& successful, AudioEngine* engine)
: AudioDevice(std::clamp<ch_cnt_t>(ConfigManager::inst()->value("audioportaudio", "channels").toInt(),
DEFAULT_CHANNELS, DEFAULT_CHANNELS),
engine)
: AudioDevice(ConfigManager::inst()->value("audioportaudio", "channels").toInt(), engine)
, m_paStream(nullptr)
, m_wasPAInitError(false)
, m_outBuf(std::make_unique<SampleFrame[]>(engine->framesPerPeriod()))
Expand Down

0 comments on commit db4aea6

Please sign in to comment.