Advertisement
Guest User

/etc/asound.conf

a guest
Nov 24th, 2010
3,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.18 KB | None | 0 0
  1. ## configuration of pulseaudio that prevented flashplayer from being able to play simultaneously with other programs
  2. # cat /etc/asound.conf
  3. # the sound card
  4. pcm.real {
  5.   type hw
  6.   card 0
  7.   device 0
  8. }
  9.  
  10. # the ipc stuff is needed for permissions, etc.
  11. pcm.dmixer {
  12.   type dmix
  13.   ipc_key 1024
  14.   ipc_perm 0666
  15.   slave.pcm "real"
  16.   slave {
  17.     period_time 0
  18.     period_size 1024
  19.     buffer_size 8192
  20.     rate 44100  
  21.   }
  22.   bindings {
  23.     0 0
  24.     1 1
  25.   }
  26. }
  27.  
  28. ctl.dmixer {
  29.   type hw
  30.   card 0
  31.   }
  32.  
  33. # software volume
  34. pcm.softvol {
  35.   type softvol
  36.   slave.pcm "dmixer"
  37.   control {
  38.     name "Software"
  39.     card 0
  40.   }
  41. }
  42. # mpd volume control                                                                                                                                                                
  43. pcm.mpdvol {                                                                                                                                                                        
  44.   type softvol                                                                                                                                                                      
  45.   slave.pcm "dmixer"                                                                                                                                                                
  46.   control {                                                                                                                                                                        
  47.     name "MPD"                                                                                                                                                                      
  48.     card 0
  49.   }
  50. }
  51. # ctrl for mpd volume
  52. ctl.mpdvol {
  53.   type hw
  54.   card 0
  55. }
  56.  
  57. # input
  58. pcm.input {
  59.         type dsnoop
  60.         ipc_key 3129398
  61.         ipc_key_add_uid false
  62.         ipc_perm 0660
  63.         slave.pcm "810"
  64. }
  65.  
  66. # duplex device
  67. pcm.duplex {
  68.         type asym
  69.         playback.pcm "softvol"
  70.         capture.pcm "input"
  71. }
  72.  
  73. # default devices
  74. pcm.!default {
  75.   type plug
  76.   slave.pcm "duplex"
  77. }
  78.  
  79. # for oss devices
  80. pcm.dsp0 {
  81.   type plug
  82.   slave.pcm "duplex"
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement