Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. # ------------------------------------------------------
  2. # hardware 0,0 : used for ALSA playback
  3. pcm.loophw00 {
  4. type hw
  5. card Loopback
  6. device 0
  7. subdevice 0
  8. format S32_LE
  9. rate 48000
  10. }
  11.  
  12. # ------------------------------------------------------
  13. # playback PCM device: using loopback subdevice 0,0
  14. # Don't use a buffer size that is too small. Some apps
  15. # won't like it and it will sound crappy
  16.  
  17. pcm.amix {
  18. type dmix
  19. ipc_key 219345
  20. slave {
  21. pcm loophw00
  22. period_size 4096
  23. periods 2
  24. }
  25. }
  26.  
  27. # ------------------------------------------------------
  28. # software volume
  29. pcm.asoftvol {
  30. type softvol
  31. slave.pcm "amix"
  32.  
  33. control { name PCM }
  34.  
  35. min_dB -51.0
  36. max_dB 0.0
  37. }
  38.  
  39. # ------------------------------------------------------
  40. # for jack alsa_in: looped-back signal at other ends
  41. pcm.cloop {
  42. type hw
  43. card Loopback
  44. device 1
  45. subdevice 0
  46. format S32_LE
  47. rate 48000
  48. }
  49.  
  50. # ======================================================
  51. # ------------------------------------------------------
  52. # hardware 0,1 : used for ALSA capture
  53. pcm.loophw01 {
  54. type hw
  55. card Loopback
  56. device 0
  57. subdevice 1
  58. format S32_LE
  59. rate 48000
  60. }
  61.  
  62. # ------------------------------------------------------
  63. # for jack alsa_out: looped-back signal at other end
  64. pcm.ploop {
  65. type hw
  66. card Loopback
  67. device 1
  68. subdevice 1
  69. format S32_LE
  70. rate 48000
  71. }
  72.  
  73. # ======================================================
  74. # ------------------------------------------------------
  75. # duplex device combining our PCM devices defined above
  76. pcm.aduplex {
  77. type asym
  78. playback.pcm "asoftvol"
  79. capture.pcm "loophw01"
  80. }
  81.  
  82. # ------------------------------------------------------
  83. # default device
  84. pcm.!default {
  85. type plug
  86. slave.pcm aduplex
  87.  
  88. hint {
  89. show on
  90. description "Duplex Loopback"
  91. }
  92. }
  93. # ------------------------------------------------------
  94. # default device
  95. pcm.card0 {
  96. type plug
  97. slave.pcm aduplex
  98.  
  99. hint {
  100. show on
  101. description "Duplex Loopback"
  102. }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement