Advertisement
Guest User

Untitled

a guest
Aug 11th, 2010
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. #Define the soundcard to use
  2. pcm.snd_card {
  3. type hw
  4. card 0
  5. device 0
  6. }
  7. # 6 channel dmix - output whatever audio, to all 6 speakers
  8. pcm.dmix6 {
  9. type dmix
  10. ipc_key 1022
  11. ipc_perm 0666
  12. ipc_key_add_uid false
  13. slave {
  14. pcm "snd_card"
  15. format S32_LE
  16. rate 48000
  17. period_size 2048 # must be power of 2
  18. buffer_size 16384 # dito. It
  19. channels 6
  20. }
  21. }
  22.  
  23. #pcm.dsnooped {
  24. # ipc_key 1027
  25. # type dsnoop
  26. # slave.pcm "hw:0,0"
  27. # }
  28.  
  29. pcm.softvol {
  30. type softvol
  31. slave {
  32. pcm "dmix6" #redirect the output to dmix (instead of "hw:0,0")
  33. }
  34. control {
  35. name "PCM Playback Volume" #override the PCM slider to set the softvol volume level globally
  36. card 0
  37. }
  38. }
  39.  
  40. # upmixing - duplicate stereo data to all 6 channels
  41. pcm.ch51dup {
  42. type route
  43. slave.pcm softvol
  44. slave.channels 6
  45. ttable {
  46. 0.0 1 # front left
  47. 1.1 1 # front right
  48. 0.2 1 # rear left
  49. 1.3 1 # rear right
  50. 0.4 0.5 # center
  51. 1.4 0.5 # center
  52. # 0.5 0.5 # subwoofer
  53. # 1.5 0.5 # subwoofer
  54. }
  55. }
  56. pcm.surround6 {
  57. type plug
  58. slave.pcm asymed6
  59. }
  60.  
  61.  
  62. pcm.asymed6 {
  63. type asym
  64. playback.pcm "softvol"
  65. capture.pcm {
  66. type plug
  67. slave.pcm "dsnoop:0"
  68. }
  69.  
  70. }
  71.  
  72. pcm.asymed {
  73. type asym
  74. playback.pcm "ch51dup"
  75. capture.pcm {
  76. type plug
  77. slave.pcm "dsnoop:0"
  78. }
  79. }
  80.  
  81.  
  82. pcm.!default {
  83. type plug
  84. slave.channels 6
  85. slave.pcm "asymed"
  86. hint {
  87. show on
  88. description "Onboard Soundcard"
  89. }
  90.  
  91. }
  92. pcm.!plug:surround51 "surround6"
  93. pcm.!surround51 "surround6"
  94. pcm.!surround51:0 "surround6"
  95. pcm.!plug:surround51:0 "surround6"
  96.  
  97. pcm.dsp {
  98. type plug
  99. slave.pcm "softvol"
  100. }
  101. ctl.mixer {
  102. type plug
  103. slave.pcm "asymed"
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement