Advertisement
Guest User

Untitled

a guest
Feb 11th, 2015
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. defaults.pcm.rate_converter "samplerate_best"
  2. # SRC_SINC_BEST_QUALITY
  3.  
  4. pcm.dmixed {
  5. type asym
  6. playback.pcm {
  7. # See plugin:dmix at http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
  8. type dmix
  9.  
  10. # Don't block other users, e.g. the Timidity midi-player daemon
  11. # http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
  12. ipc_key_add_uid true
  13.  
  14. ipc_key 5678293
  15. ipc_perm 0660
  16. ipc_gid audio
  17.  
  18. # Don't put the rate here! Otherwise it resets the rate & channels set below, as shown by: cat /proc/asound/card0/pcm0p/sub0/hw_params
  19. slave {
  20. # 2 for stereo, 6 for surround51, 8 for surround71
  21. channels 2
  22. pcm {
  23. # mplayer chooses S32_LE, but others usually S16_LE
  24. #format S32_LE
  25. format S16_LE
  26.  
  27. # 44100 or 48000
  28. # 44100 for music, 48000 is compatible with most h/w
  29. #rate 44100
  30. rate 48000
  31.  
  32. # http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
  33. # Maybe helps
  34. nonblock true
  35.  
  36. type hw
  37. card 3
  38. device 0
  39. subdevice 0
  40. }
  41.  
  42. # mplayer2 chooses 1024
  43. # period_size 512 with buffer_size 16384 stops crackling in xmame
  44. # 320 breaks flash - https://bbs.archlinux.org/viewtopic.php?id=129458
  45. #period_size 512
  46. #period_size 1024
  47. period_size 2048
  48.  
  49. # 4096 might make sound crackle
  50. # mplayer2 chooses 8192. Half-Life 2 chooses 16384.
  51. # If too large, use CONFIG_SND_HDA_PREALLOC_SIZE=2048
  52. #buffer_size 16384
  53. buffer_size 65536
  54. }
  55. }
  56. # apulse (a cut-down replacement for pulseaudio) needs dsnoop
  57. # https://bbs.archlinux.org/viewtopic.php?id=187258
  58. capture.pcm "dsnoop"
  59. }
  60.  
  61. pcm.!default {
  62. type plug
  63. # Would need to always output to all 6 channels, so the dmixer actually works if e.g. 6-channel is attempted to be started, while 2-channel is playing.
  64. slave.pcm "dmixed"
  65. }
  66.  
  67.  
  68. # http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/
  69. pcm.pulse {
  70. type pulse
  71. }
  72.  
  73. ctl.pulse {
  74. type pulse
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement