File:  [NetBSD Developer Wiki] / wikisrc / tutorials / using_pulseaudio.mdwn
Revision 1.5: download - view: text, annotated - select for diffs
Sun Jan 5 23:21:18 2014 UTC (7 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: HEAD
Mention how to configure musicpd for pulseaudio.

    1: **Contents**
    2: 
    3: [[!toc levels=2]]
    4: 
    5: #  Install All Utilities 
    6: 
    7: Install meta-pkgs/pulseaudio-tools. 
    8: 
    9: # Setup
   10: 
   11: ## Pre-requisites
   12: 
   13: pulseaudio needs hald to run. So if it's not running already:
   14: 
   15:     cp /usr/pkg/share/examples/rc.d/hal /etc/rc.d
   16:     echo hal=YES >> /etc/rc.conf
   17: 
   18: ## Configure it
   19: 
   20: pulseaudio needs the oss audio sink to be configured, i.e., it needs to be told
   21: about the sound card it should use. Thus, edit /usr/pkg/etc/pulse/default.pa,
   22: uncomment the "load-module module-oss" line and change it to point to the correct
   23: audio device, usually audio0:
   24: 
   25:     load-module module-oss device="/dev/audio0" sink_name=output source_name=input
   26: 
   27: #  Third Party Applications 
   28: 
   29: ##  ALSA Applications 
   30: 
   31: Ignore on NetBSD? 
   32: 
   33: ##  Amarok (audio/amarok) 
   34: 
   35: Install audio/xine-pulse, select Xine engine and 'pulseaudio' backend. 
   36: 
   37: ##  Audacious (audio/audacious) 
   38: 
   39: Not tested. 
   40: 
   41: ##  Audacity (audio/audacity) 
   42: 
   43: 'padsp' method works. 'pasuspender' [crashes the daemon on resume](http://www.pulseaudio.org/ticket/466) (will be fixed in 0.9.15) 
   44: 
   45: ##  ESOUND Applications 
   46: 
   47: Create symlink manually: 
   48:     
   49:      mkdir -p /tmp/.esd && ln -s /tmp/.esd-${UID} /tmp/.esd/sound
   50:     
   51: 
   52: ##  Flash Player (multimedia/ns-flash) 
   53: 
   54: Install multimedia/libflashsupport-pulse on i386 and amd64. Flash 7 on sparc not tested. 
   55: 
   56: ##  GNOME 
   57: 
   58: Works via GStreamer. 
   59: 
   60: ##  GStreamer Applications 
   61: 
   62: Install audio/gst-plugins0.10-pulse. 
   63: 
   64: ##  iaxComm 
   65: 
   66: Not in pkgsrc. 
   67: 
   68: ##  KDE 
   69: 
   70: pulseaudio crashes in protocol-esound.c:do_work(). Probably the same bug as [pa#463](http://www.pulseaudio.org/ticket/463). 
   71: 
   72: ##  libao Applications 
   73: 
   74: Install audio/libao-pulse. 
   75: 
   76: ##  MPD (audio/musicpd) 
   77: 
   78: Compile musicpd with the default-off pulseaudio option enabled.
   79: 
   80: Configure a matching audio_output section in mpd.conf:
   81: 
   82:     audio_output {
   83:         type            "pulse"
   84:         name            "Pulseaudio"
   85:     }
   86: 
   87: ##  MPlayer (multimedia/mplayer) 
   88: 
   89: pulseaudio support added in 1.0rc10nb12 and works. 
   90:     
   91:     $ mplayer -ao pulse myvideo.avi
   92: 
   93: or add the line
   94: 
   95:     ao=pulse
   96: 
   97: to .mplayer/config.
   98: 
   99: If you have audio/video sync problems, you can modify the sync with the plus ('+') and minus ('-') keys.
  100: 
  101: ##  MPlayer plug-in (multimedia/mplayer-plugin-*) 
  102: 
  103: Not tested, but should work as described. 
  104: 
  105: ##  MythTV (wip/mythtv) 
  106: 
  107: WIP package is obsolete and does not build on NetBSD. 
  108: 
  109: ##  OpenAL Applications 
  110: 
  111: Not tested, but should work as described. 
  112: 
  113: ##  OSS Applications 
  114: 
  115: 'padsp' works. 
  116: 
  117: ##  Real Player (multimedia/RealPlayerGold) 
  118: 
  119: Not tested. 
  120: 
  121: ##  SDL (devel/SDL) 
  122: 
  123: 1.2.12 in pkgsrc. Works fine. 
  124: 
  125: ##  Skype (net/skype) 
  126: 
  127: Not tested. 
  128: 
  129: ##  Teeworlds 
  130: 
  131: Not in pkgsrc. 
  132: 
  133: ##  TiMidity++ (audio/timidity) 
  134: 
  135: Works via libao -- install timidity-2.13.2nb10 and libao-pulse. 
  136: 
  137: ##  Totem (multimedia/totem) 
  138: 
  139: Works via GStreamer. 
  140: 
  141: ##  VideoLAN (multimedia/vlc) 
  142: 
  143: 0.9.8a in pkgsrc, pulseaudio supported. Not tested, but should work as described. 
  144: 
  145: ##  wavbreaker 
  146: 
  147: Not in pkgsrc. 
  148: 
  149: ##  WINE (emulators/wine) 
  150: 
  151: Not tested. 
  152: 
  153: ##  Xine 
  154: 
  155: Install audio/xine-pulse. 
  156: 
  157: ##  XMMS 
  158: 
  159: xmms-pulse not in pkgsrc; xmms-esound works, but can [crash pulseaudio](http://www.pulseaudio.org/ticket/481). 
  160: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb