mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Fix invalid handle issue in AlsaOut
This commit is contained in:
parent
adb3048a21
commit
c95cb68ae4
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user