mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-23 05:55:32 +00:00
ALSA: look for the control file rather than pcm files
This commit is contained in:
parent
5ce24c5382
commit
2d8f8e7f31
|
@ -794,10 +794,7 @@ static void device_thread_run(void *arg) {
|
||||||
continue;
|
continue;
|
||||||
if (!event->len || event->len < 8)
|
if (!event->len || event->len < 8)
|
||||||
continue;
|
continue;
|
||||||
if (event->name[0] != 'p' ||
|
if (strncmp(event->name, "controlC", 8) != 0) {
|
||||||
event->name[1] != 'c' ||
|
|
||||||
event->name[2] != 'm')
|
|
||||||
{
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (event->mask & IN_CREATE) {
|
if (event->mask & IN_CREATE) {
|
||||||
|
|
Loading…
Reference in a new issue