Fix invalid handle issue in AlsaOut

This commit is contained in:
casey langen 2020-04-09 16:54:03 -07:00
parent adb3048a21
commit c95cb68ae4

View File

@ -499,6 +499,7 @@ void AlsaOut::SetFormat(IBuffer *buffer) {
this->InitDevice();
if (this->pcmHandle) {
int err = snd_pcm_set_params(
this->pcmHandle,
PCM_FORMAT,
@ -514,6 +515,7 @@ void AlsaOut::SetFormat(IBuffer *buffer) {
else {
this->SetVolume(this->volume);
}
}
std::cerr << "AlsaOut: device format initialized from buffer\n";
}