Skip to content

Commit

Permalink
Print more diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Feb 17, 2025
1 parent 4738a5e commit 52fe8e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/core/audio/AudioPortAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ AudioPortAudio::AudioPortAudio(bool& successful, AudioEngine* engine)
if (err != paFormatIsSupported)
{
std::cerr << "Failed to support PortAudio format: " << Pa_GetErrorText(err) << '\n';
std::cerr << "Device range: " << "[0, " << deviceCount - 1 << "]\n";
std::cerr << "Device range: " << "[0, " << deviceCount - 1 << "]\n";

if (outputDeviceInfo != nullptr)
{
std::cerr << "Max channel count: " << outputDeviceInfo->maxOutputChannels << '\n';
std::cerr << "Default sample rate: " << outputDeviceInfo->defaultSampleRate << '\n';
}

std::cerr << "Output sample rate: " << sampleRate() << '\n';
std::cerr << "Output device index: " << outputParameters.device << '\n';
std::cerr << "Output channel count: " << outputParameters.channelCount << '\n';
Expand Down

0 comments on commit 52fe8e9

Please sign in to comment.