Advertisement
JcGNeon

.asoundrc

Oct 4th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. # .asoundrc to use skype at the same time as other audio apps like xmms
  2. #
  3. # Successfully tested on an IBM x40 with i810_audio using Linux 2.6.15 and
  4. # Debian unstable with skype 1.2.0.18-API. No sound daemons (asound, esd, etc.)
  5. # running. However, YMMV.
  6. #
  7. # For background, see:
  8. #
  9. # https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1228
  10. # https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1224
  11. #
  12. # (C) 2006-06-03 Lorenzo Colitti - http://www.colitti.com/lorenzo/
  13. # Licensed under the GPLv2 or later
  14.  
  15. pcm.skype {
  16. type asym
  17. playback.pcm "skypeout"
  18. capture.pcm "skypein"
  19. }
  20.  
  21. pcm.skypein {
  22. type route
  23. slave {
  24. pcm "skypedsnoop"
  25. format S16_LE
  26. }
  27. ttable {
  28. 0 {0 0.5}
  29. 1 {0 0.5}
  30. }
  31. }
  32.  
  33. pcm.skypeout {
  34. # Just pass this on to the system dmix
  35. type plug
  36. slave {
  37. pcm "dmix"
  38. }
  39. }
  40.  
  41. pcm.skypedsnoop {
  42. type dsnoop
  43. ipc_key 1133
  44. slave {
  45. # "Magic" buffer values to get skype audio to work
  46. # If these are not set, opening /dev/dsp succeeds but no sound
  47. # will be heard. According to the ALSA developers this is due
  48. # to skype abusing the OSS API.
  49. pcm "hw:0,0"
  50. period_size 256
  51. periods 16
  52. buffer_size 16384
  53. }
  54. bindings {
  55. 0 0
  56. }
  57. }
  58.  
  59. #pcm.asymed {
  60. # type asym
  61. # playback.pcm "dmix"
  62. # capture.pcm "dsnoop"
  63. #}
  64.  
  65. #pcm.!default {
  66. # type plug
  67. # slave.pcm "asymed"
  68. #}
  69.  
  70. pcm.!default {
  71. type hw
  72. card 1
  73. device 0
  74. }
  75.  
  76. ctl.!default {
  77. type hw
  78. card 1
  79. device 0
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement