Advertisement
Guest User

~/.asoundrc (2 channels)

a guest
Dec 14th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.78 KB | None | 0 0
  1. # ~/.asoundrc
  2. # ===========
  3.  
  4. # 1. 8 microphones to one device
  5. #   (only 2 channels of 8 are used right now)
  6. # -------------------------------------------
  7.  
  8. pcm.8mics_multi {
  9.     type multi
  10.     slaves {
  11.         a { pcm "hw:2,0" channels 1 }
  12.         b { pcm "hw:3,0" channels 1 }
  13. #        c { pcm "hw:4,0" channels 1 }
  14. #        d { pcm "hw:5,0" channels 1 }
  15. #        e { pcm "hw:6,0" channels 1 }
  16. #        f { pcm "hw:7,0" channels 1 }
  17. #        g { pcm "hw:8,0" channels 1 }
  18. #        h { pcm "hw:9,0" channels 1 }
  19.     }
  20.     bindings [
  21.         { slave a channel 0 }
  22.         { slave b channel 0 }
  23. #        { slave c channel 0 }
  24. #        { slave d channel 0 }
  25. #        { slave e channel 0 }
  26. #        { slave f channel 0 }
  27. #        { slave g channel 0 }
  28. #        { slave h channel 0 }
  29.     ]
  30. }
  31.  
  32. pcm.8mics {
  33.     type plug
  34.     slave { pcm "8mics_multi" channels 2 }        # channels 8 -> channels 2
  35.     hint { show on description "8 mics" }
  36. }
  37.  
  38. # 2. Each microphone to a separate device
  39. # ---------------------------------------
  40.  
  41. pcm.mic1 { type plug slave { pcm "hw:2,0" channels 1 } hint { show on description "Mic 1" } }
  42. pcm.mic2 { type plug slave { pcm "hw:3,0" channels 1 } hint { show on description "Mic 2" } }
  43. pcm.mic3 { type plug slave { pcm "hw:4,0" channels 1 } hint { show on description "Mic 3" } }
  44. pcm.mic4 { type plug slave { pcm "hw:5,0" channels 1 } hint { show on description "Mic 4" } }
  45. pcm.mic5 { type plug slave { pcm "hw:6,0" channels 1 } hint { show on description "Mic 5" } }
  46. pcm.mic6 { type plug slave { pcm "hw:7,0" channels 1 } hint { show on description "Mic 6" } }
  47. pcm.mic7 { type plug slave { pcm "hw:8,0" channels 1 } hint { show on description "Mic 7" } }
  48. pcm.mic8 { type plug slave { pcm "hw:9,0" channels 1 } hint { show on description "Mic 8" } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement