Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.asoundrc file makes soundcard exclusive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Silent-Hunter
n00b
n00b


Joined: 07 Jul 2013
Posts: 70

PostPosted: Thu Mar 27, 2014 11:35 pm    Post subject: .asoundrc file makes soundcard exclusive Reply with quote

I wish to use a wireless USB audio headset with Minecraft and TeamSpeak. However, the only way I've found to do that is to use .asoundrc to make the alsa default card 3.

The contents of my .asoundrc are as follows:

Code:
pcm.!default {
   type hw
   card 0
#   card 3
}

ctl.!default {
   type hw           
   card 0
#   card 3
}


And when I want to use the headset:

Code:
pcm.!default {
   type hw
#   card 0
   card 3
}

ctl.!default {
   type hw           
#   card 0
   card 3
}


The problem is, with this file in existence, it makes any program that uses the default alsa device prevent other programs from accessing it.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1235
Location: 42.68n 85.41w

PostPosted: Fri Mar 28, 2014 2:14 am    Post subject: Reply with quote

(i get around this by removing asoundrc & using pulse use flags)
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
Silent-Hunter
n00b
n00b


Joined: 07 Jul 2013
Posts: 70

PostPosted: Fri Mar 28, 2014 3:55 am    Post subject: Reply with quote

Oh. I hope there's another solution, I hated dealing with Pulseaudio when I used Ubuntu and Fedora.
Back to top
View user's profile Send private message
ng-cat
n00b
n00b


Joined: 10 Apr 2014
Posts: 4

PostPosted: Thu Apr 10, 2014 4:32 am    Post subject: Re: .asoundrc file makes soundcard exclusive Reply with quote

just replace the cards in the default pcm instead of making a new one:
~/.asoundrc:
defaults.pcm.!card 3
defaults.ctl.!card 3

that should be enough.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum