wok-6.x rev 13548
Added multi-stream support to Alsa
author | Brenton Scott <admin@trixarian.net> |
---|---|
date | Fri Nov 02 06:24:10 2012 +0200 (2012-11-02) |
parents | e651a7475c2e |
children | 9400faefc6d7 |
files | alsa-lib/description.txt alsa-lib/receipt alsa-lib/stuff/asound.conf |
line diff
1.1 --- a/alsa-lib/description.txt Fri Nov 02 00:59:42 2012 +0000 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,3 +0,0 @@ 1.4 -The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI 1.5 -functionality to the Linux operating system. This package provides the ALSA 1.6 -libraries.
2.1 --- a/alsa-lib/receipt Fri Nov 02 00:59:42 2012 +0000 2.2 +++ b/alsa-lib/receipt Fri Nov 02 06:24:10 2012 +0200 2.3 @@ -22,6 +22,9 @@ 2.4 # Rules to gen a SliTaz package suitable for Tazpkg. 2.5 genpkg_rules() 2.6 { 2.7 + # Enable software mixing for multiple audio streams 2.8 + mkdir -p $fs/etc 2.9 + cp $stuff/asound.conf $fs/etc 2.10 mkdir -p $fs/usr/lib $fs/usr/share 2.11 cp -a $install/usr/bin $fs/usr 2.12 cp -a $install/usr/lib/*.so* $fs/usr/lib
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/alsa-lib/stuff/asound.conf Fri Nov 02 06:24:10 2012 +0200 3.3 @@ -0,0 +1,48 @@ 3.4 +pcm.my_card { 3.5 + type hw 3.6 + card 0 3.7 + # mmap_emulation true 3.8 +} 3.9 + 3.10 +pcm.dmixed { 3.11 + type dmix 3.12 + ipc_key 1024 3.13 + # ipc_key_add_uid false # let multiple users share 3.14 + # ipc_perm 0666 # IPC permissions for multi user sharing (octal, default 0600) 3.15 + slave { 3.16 + pcm "my_card" 3.17 + # rate 48000 3.18 + # period_size 512 3.19 + } 3.20 +} 3.21 + 3.22 +pcm.dsnooped { 3.23 + type dsnoop 3.24 + ipc_key 2048 3.25 + slave { 3.26 + pcm "my_card" 3.27 + # rate 48000 3.28 + # period_size 128 3.29 + } 3.30 +} 3.31 + 3.32 +pcm.asymed { 3.33 + type asym 3.34 + playback.pcm "dmixed" 3.35 + capture.pcm "dsnooped" 3.36 +} 3.37 + 3.38 +pcm.pasymed { 3.39 + type plug 3.40 + slave.pcm "asymed" 3.41 +} 3.42 + 3.43 +pcm.dsp0 { 3.44 + type plug 3.45 + slave.pcm "asymed" 3.46 +} 3.47 + 3.48 +pcm.!default { 3.49 + type plug 3.50 + slave.pcm "asymed" 3.51 +}