Advertisement
Guest User

.asoundrc

a guest
Jan 8th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. pcm.softvolPhonon {
  2. type softvol
  3. slave.pcm "default:CARD=0"
  4. control {
  5. name "Phonon"
  6. card 0
  7. }
  8. min_dB -51.0
  9. max_dB 0.0
  10. resolution 100
  11. hint {
  12. show on
  13. description "My Soundcard with extra Volume Control"
  14. }
  15. }
  16.  
  17.  
  18. #asym fun start here. we define one pcm device called "dmixed"
  19. pcm.dmixed {
  20. ipc_key 1025
  21. type dmix
  22. slave {
  23. pcm "hw:0,0"
  24. period_time 0
  25. period_size 1024
  26. buffer_size 8192
  27. rate 48000
  28. }
  29. }
  30.  
  31. #one called "dsnooped" for capturing
  32. pcm.dsnooped {
  33. ipc_key 1026
  34. type dsnoop
  35. slave.pcm "hw:0,0"
  36. }
  37.  
  38. #and this is the real magic
  39. pcm.asymed {
  40. type asym
  41. playback.pcm "dmixed"
  42. capture.pcm "dsnooped"
  43. }
  44.  
  45. #a quick plug plugin for above device to do the converting magic. saves
  46. #typing when settng the pcm name in an alsa app
  47. pcm.pasymed {
  48. type plug
  49. slave.pcm "asymed"
  50. }
  51.  
  52. #a ctl device to keep xmms happy
  53. ctl.pasymed {
  54. type hw
  55. card 0
  56. }
  57.  
  58. #here we try to point the aoss script to our asymed device
  59. pcm.dsp0 {
  60. type plug
  61. slave.pcm "asymed"
  62. }
  63.  
  64. #this sets the default device
  65. pcm.!default {
  66. type plug
  67. slave.pcm "asymed"
  68. }
  69.  
  70. # convert alsa API over jack API
  71. # use it with
  72. # % aplay foo.wav
  73.  
  74. # use this as default
  75. pcm.jackplug {
  76. type plug
  77. slave { pcm "jack" }
  78. }
  79.  
  80. ctl.mixer0 {
  81. type hw
  82. card 0
  83. }
  84.  
  85. # pcm type jack
  86. pcm.jack {
  87. type jack
  88. playback_ports {
  89. 0 alsa_pcm:playback_1
  90. 1 alsa_pcm:playback_2
  91. }
  92. capture_ports {
  93. 0 alsa_pcm::capture_1
  94. 1 alsa_pcm::capture_2
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement