Hi,

I'm running Debian testing/stretch and since a few days (weeks?)
dmix refuses to work with a old SoundBlaster Live! card
when multiple applications try to play music.

Any ideas and/or hints?

The mplayer test case in two shells:

------------------- Shell 2: -----------------------------------
> Sound works. I pressed q to quit mplayer.
> The semaphore error only occurs when the
> second instance of mplayer was started - and failed - in Shell 2.

mplayer -ao alsa:device=dmixer \
        07\(Lindsey\ Stirling\)\ -\ Transcendence.flac
.
.
.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.64.101 (external)
AUDIO: 44100 Hz, 2 ch, s16le, 1033.9 kbit/73.27% (ratio: 129241->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   3.3 (03.3) of 225.0 (03:45.0)  0.5%
[AO_ALSA] alsa-lib: pcm_direct.h:279:(snd_pcm_direct_semaphore_final)
invalid semaphore count to finalize 0: 0

Exiting... (Quit)
.
.
.


------------------- Shell 2: -----------------------------------
> No sound. mplayer fails with an error.

mplayer -ao alsa:device=dmixer \
        07\(Lindsey\ Stirling\)\ -\ Transcendence.flac
.
.
.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.64.101 (external)
AUDIO: 44100 Hz, 2 ch, s16le, 1033.9 kbit/73.27% (ratio: 129241->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
[AO_ALSA] alsa-lib: pcm_hw.c:1601:(snd_pcm_hw_open) open
'/dev/snd/pcmC0D0p' failed (-22): Invalid argument
[AO_ALSA] alsa-lib: pcm_dmix.c:1098:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Invalid argument
Failed to initialize audio driver 'alsa:device=dmixer'
.
.
.


------------------- /etc/asounf.conf -----------------------------------

.
.
.
pcm.dmixer {
        type dmix
        ipc_key 1030
        ipc_key_add_uid false
        ipc_perm 0666
        slave {
                pcm "hw:Live"
                period_time 0
                period_size 1024
                buffer_size 8192
                rate 48000
                channels 2
        }
        bindings {
                0 0
                1 1
        }
}
.
.
.


------------------- System -----------------------------------
> uname -a
Linux blauwal 4.9.0-1-amd64 #1 SMP Debian 4.9.2-2 (2017-01-12) x86_64
GNU/Linux

ALSA library version: 1.0.27


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to