alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
366 stars 177 forks source link

ALSA lib pcm_dmix.c:1063:(snd_pcm_dmix_open) unable to create IPC semaphore #153

Closed Cean1024 closed 3 years ago

Cean1024 commented 3 years ago

alsa info: alsa-config-1.0
alsa-lib-1.1.5 alsa-plugins-1.1.5 alsa-utils-1.1.5

asound.conf:

pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 48000
        format "S32_LE"
        channels 2
    }

    bindings {
        0 0
        1 1
    }
}

test cmd:

arecord -f dat | aplay -f dat -D plug:dmixer
perexg commented 3 years ago

Sorry, the version 1.1.5 is too old. Also, make sure that your kernel supports SYSV IPC (man ipc).