File:  [NetBSD Developer Wiki] / wikisrc / tutorials / using_pulseaudio.mdwn
Revision 1.4: download - view: text, annotated - select for diffs
Sun Jan 5 23:10:03 2014 UTC (7 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: HEAD
Mention mplayer config file and how to manually adjust sync.

    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: pulseaudio support not backported from SVN. 
   79: 
   80: ##  MPlayer (multimedia/mplayer) 
   81: 
   82: pulseaudio support added in 1.0rc10nb12 and works. 
   83:     
   84:     $ mplayer -ao pulse myvideo.avi
   85: 
   86: or add the line
   87: 
   88:     ao=pulse
   89: 
   90: to .mplayer/config.
   91: 
   92: If you have audio/video sync problems, you can modify the sync with the plus ('+') and minus ('-') keys.
   93: 
   94: ##  MPlayer plug-in (multimedia/mplayer-plugin-*) 
   95: 
   96: Not tested, but should work as described. 
   97: 
   98: ##  MythTV (wip/mythtv) 
   99: 
  100: WIP package is obsolete and does not build on NetBSD. 
  101: 
  102: ##  OpenAL Applications 
  103: 
  104: Not tested, but should work as described. 
  105: 
  106: ##  OSS Applications 
  107: 
  108: 'padsp' works. 
  109: 
  110: ##  Real Player (multimedia/RealPlayerGold) 
  111: 
  112: Not tested. 
  113: 
  114: ##  SDL (devel/SDL) 
  115: 
  116: 1.2.12 in pkgsrc. Works fine. 
  117: 
  118: ##  Skype (net/skype) 
  119: 
  120: Not tested. 
  121: 
  122: ##  Teeworlds 
  123: 
  124: Not in pkgsrc. 
  125: 
  126: ##  TiMidity++ (audio/timidity) 
  127: 
  128: Works via libao -- install timidity-2.13.2nb10 and libao-pulse. 
  129: 
  130: ##  Totem (multimedia/totem) 
  131: 
  132: Works via GStreamer. 
  133: 
  134: ##  VideoLAN (multimedia/vlc) 
  135: 
  136: 0.9.8a in pkgsrc, pulseaudio supported. Not tested, but should work as described. 
  137: 
  138: ##  wavbreaker 
  139: 
  140: Not in pkgsrc. 
  141: 
  142: ##  WINE (emulators/wine) 
  143: 
  144: Not tested. 
  145: 
  146: ##  Xine 
  147: 
  148: Install audio/xine-pulse. 
  149: 
  150: ##  XMMS 
  151: 
  152: xmms-pulse not in pkgsrc; xmms-esound works, but can [crash pulseaudio](http://www.pulseaudio.org/ticket/481). 
  153: 

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