SliTaz SliTaz Forum

You are not logged in.

#1 2013-07-30 15:14:00

eeschimosu
Member
Registered: 2012-07-11
Posts: 7

USB Audio Device

Hi, I use a USB Audio Device on sliTaz 4.0 (cooking). It works fine, but the problem is that it works only in one instance. I mean if I try to listen to music while browsing the internet, I have sound only on one of those two options. Can anybody help me with this? I dont have a clue on where to start.

Offline

#2 2013-07-30 15:57:24

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: USB Audio Device

Try this:

1. Open a terminal program like Sakura and [c]su[/c] to root

2. Type [c]leafpad /etc/asound.conf[/c]

3. Paste the following:

[c]pcm.my_card {
   type hw
   card 0
   # mmap_emulation true
}

pcm.dmixed {
   type dmix
   ipc_key 1024
   #  ipc_key_add_uid false   # let multiple users share
   #  ipc_perm 0666           # IPC permissions for multi user sharing (octal, default 0600)
   slave {
   pcm "my_card"
   #   rate 48000
   #   period_size 512
   }
}

pcm.dsnooped {
   type dsnoop
   ipc_key 2048
   slave {
   pcm "my_card"
   #   rate 48000
   #   period_size 128
   }
}

pcm.asymed {
   type asym
   playback.pcm "dmixed"
   capture.pcm "dsnooped"
}

pcm.pasymed {
   type plug
   slave.pcm "asymed"
}

pcm.dsp0 {
   type plug
   slave.pcm "asymed"
}

pcm.!default {
   type plug
   slave.pcm "asymed"
}[/c]
4. Save and restart the system. Sound should now work with multiple streams. Downside is that it doesn't work with every program out there, but it's pretty close.

Offline

#3 2013-07-30 16:19:20

eeschimosu
Member
Registered: 2012-07-11
Posts: 7

Re: USB Audio Device

This works with what I use: Seamonkey/Opera and alsa audio player. Thank you for your help!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]