Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. # cat /etc/asound.conf
  2.  
  3. pcm.bluetooth {
  4. type bluetooth
  5. device 12:34:56:78:9a:bc
  6. profile "auto"
  7. }
  8.  
  9. ctl.bluetooth {
  10. type bluetooth
  11. }
  12.  
  13. mplayer -ao alsa:device=bluetooth file.mp3
  14.  
  15. mplayer file.mp3
  16.  
  17. mplayer file.mp3
  18.  
  19. # duplicate audio to both devices
  20. pcm.!default plug:both
  21.  
  22. ctl.!default {
  23. type hw
  24. card SB
  25. }
  26.  
  27. pcm.both {
  28. type route;
  29. slave.pcm {
  30. type multi;
  31. slaves.a.pcm "sblive";
  32. slaves.b.pcm "onboard";
  33. slaves.a.channels 2;
  34. slaves.b.channels 4;
  35. bindings.0.slave a;
  36. bindings.0.channel 0;
  37. bindings.1.slave a;
  38. bindings.1.channel 1;
  39.  
  40. bindings.2.slave b;
  41. bindings.2.channel 0;
  42. bindings.3.slave b;
  43. bindings.3.channel 1;
  44. bindings.4.slave b;
  45. bindings.4.channel 2;
  46. bindings.5.slave b;
  47. bindings.5.channel 3;
  48. }
  49.  
  50. ttable.0.0 1;
  51. ttable.1.1 1;
  52.  
  53. ttable.0.2 1; # front left
  54. ttable.1.3 1; # front right
  55. ttable.0.4 1; # copy front left to rear left
  56. ttable.1.5 1; # copy front right to rear right
  57. }
  58.  
  59. ctl.both {
  60. type hw;
  61. card Live;
  62. }
  63.  
  64. pcm.onboard {
  65. type dmix
  66. ipc_key 1024
  67. slave {
  68. pcm "hw:0,1"
  69. period_time 0
  70. period_size 2048
  71. buffer_size 65536
  72. buffer_time 0
  73. periods 128
  74. rate 48000
  75. channels 4
  76. }
  77. bindings {
  78. 0 0
  79. 1 1
  80. 2 2
  81. 3 3
  82. }
  83. }
  84.  
  85. pcm.sblive {
  86. type dmix
  87. ipc_key 2048
  88. slave {
  89. pcm "hw:1,0"
  90. period_time 0
  91. period_size 2048
  92. buffer_size 65536
  93. buffer_time 0
  94. periods 128
  95. rate 48000
  96. channels 2
  97. }
  98. bindings {
  99. 0 0
  100. 1 1
  101. }
  102. }
  103.  
  104. ctl.onboard {
  105. type hw
  106. card "SB"
  107. }
  108.  
  109. ctl.sblive {
  110. type hw
  111. card "Live"
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement