Skip to content

Commit

Permalink
Set the number of channels after opening stream
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Feb 28, 2025
1 parent d13d1a4 commit 8a24685
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/audio/AudioPortAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ AudioPortAudio::AudioPortAudio(AudioEngine* engine)
throw std::runtime_error{std::string{"PortAudio: could not open stream, "} + Pa_GetErrorText(err)};
}

setChannels(outputDeviceChannelCount);

ConfigManager::inst()->setValue(configTag, configOutputDeviceAttribute, outputDeviceInfo->name);
ConfigManager::inst()->setValue(configTag, configOutputDeviceBackendAttribute, outputBackendInfo->name);
ConfigManager::inst()->setValue(configTag, configOutputDeviceChannelsAttribute, QString::number(outputDeviceChannelCount));
Expand Down

0 comments on commit 8a24685

Please sign in to comment.