Skip to content

Commit

Permalink
fix: use correect variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wCrack committed Dec 27, 2023
1 parent 960449b commit 54853be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/src/streamsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ void StreamSession::InitAudio(unsigned int channels, unsigned int rate)
audio_format.setChannelCount(channels);
audio_format.setSampleFormat(QAudioFormat::Int16);

if(!audio_device_info.isFormatSupported(audio_format))
if(!audio_out_device_info.isFormatSupported(audio_format))
{
CHIAKI_LOGE(log.GetChiakiLog(), "Audio Format with %u channels @ %u Hz not supported by Audio Device %s",
channels, rate,
audio_device_info.description().toLocal8Bit().constData());
audio_out_device_info.description().toLocal8Bit().constData());
return;
}

Expand All @@ -432,7 +432,7 @@ void StreamSession::InitAudio(unsigned int channels, unsigned int rate)
audio_io = audio_output->start();

CHIAKI_LOGI(log.GetChiakiLog(), "Audio Device %s opened with %u channels @ %u Hz, buffer size %u",
audio_device_info.description().toLocal8Bit().constData(),
audio_out_device_info.description().toLocal8Bit().constData(),
channels, rate, audio_output->bufferSize());
}

Expand Down

0 comments on commit 54853be

Please sign in to comment.