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 (16 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: HEAD
Mention how to configure musicpd for pulseaudio.

**Contents**

[[!toc levels=2]]

#  Install All Utilities 

Install meta-pkgs/pulseaudio-tools. 

# Setup

## Pre-requisites

pulseaudio needs hald to run. So if it's not running already:

    cp /usr/pkg/share/examples/rc.d/hal /etc/rc.d
    echo hal=YES >> /etc/rc.conf

## Configure it

pulseaudio needs the oss audio sink to be configured, i.e., it needs to be told
about the sound card it should use. Thus, edit /usr/pkg/etc/pulse/default.pa,
uncomment the "load-module module-oss" line and change it to point to the correct
audio device, usually audio0:

    load-module module-oss device="/dev/audio0" sink_name=output source_name=input

#  Third Party Applications 

##  ALSA Applications 

Ignore on NetBSD? 

##  Amarok (audio/amarok) 

Install audio/xine-pulse, select Xine engine and 'pulseaudio' backend. 

##  Audacious (audio/audacious) 

Not tested. 

##  Audacity (audio/audacity) 

'padsp' method works. 'pasuspender' [crashes the daemon on resume](http://www.pulseaudio.org/ticket/466) (will be fixed in 0.9.15) 

##  ESOUND Applications 

Create symlink manually: 
    
     mkdir -p /tmp/.esd && ln -s /tmp/.esd-${UID} /tmp/.esd/sound
    

##  Flash Player (multimedia/ns-flash) 

Install multimedia/libflashsupport-pulse on i386 and amd64. Flash 7 on sparc not tested. 

##  GNOME 

Works via GStreamer. 

##  GStreamer Applications 

Install audio/gst-plugins0.10-pulse. 

##  iaxComm 

Not in pkgsrc. 

##  KDE 

pulseaudio crashes in protocol-esound.c:do_work(). Probably the same bug as [pa#463](http://www.pulseaudio.org/ticket/463). 

##  libao Applications 

Install audio/libao-pulse. 

##  MPD (audio/musicpd) 

Compile musicpd with the default-off pulseaudio option enabled.

Configure a matching audio_output section in mpd.conf:

    audio_output {
        type            "pulse"
        name            "Pulseaudio"
    }

##  MPlayer (multimedia/mplayer) 

pulseaudio support added in 1.0rc10nb12 and works. 
    
    $ mplayer -ao pulse myvideo.avi

or add the line

    ao=pulse

to .mplayer/config.

If you have audio/video sync problems, you can modify the sync with the plus ('+') and minus ('-') keys.

##  MPlayer plug-in (multimedia/mplayer-plugin-*) 

Not tested, but should work as described. 

##  MythTV (wip/mythtv) 

WIP package is obsolete and does not build on NetBSD. 

##  OpenAL Applications 

Not tested, but should work as described. 

##  OSS Applications 

'padsp' works. 

##  Real Player (multimedia/RealPlayerGold) 

Not tested. 

##  SDL (devel/SDL) 

1.2.12 in pkgsrc. Works fine. 

##  Skype (net/skype) 

Not tested. 

##  Teeworlds 

Not in pkgsrc. 

##  TiMidity++ (audio/timidity) 

Works via libao -- install timidity-2.13.2nb10 and libao-pulse. 

##  Totem (multimedia/totem) 

Works via GStreamer. 

##  VideoLAN (multimedia/vlc) 

0.9.8a in pkgsrc, pulseaudio supported. Not tested, but should work as described. 

##  wavbreaker 

Not in pkgsrc. 

##  WINE (emulators/wine) 

Not tested. 

##  Xine 

Install audio/xine-pulse. 

##  XMMS 

xmms-pulse not in pkgsrc; xmms-esound works, but can [crash pulseaudio](http://www.pulseaudio.org/ticket/481). 


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