Changing Audio Device in Kaffeine

After my recent update from openSUSE 11.2 to 11.3 I realized that once again Kaffeine was no longer sending audio out to the correct device.  While this isn't a difficult issue to resolve it is not obvious either.  The following instructions assumes you are using xine for your backend audio under KDE4.

The first thing we need to do is discover what audio devices we have to choose from.  The easiest method by far is to run the following command:

cat /proc/asound/cards

The results will list all the various sound devices available on your system.  What you want to do is remember the number of the audio device you wish to output to.  Now that we have that information you will need to edit the Kaffeine xine-config file found in:

vi ~/.kde4/share/apps/kaffeine/xine-config

Next we need to find the line that looks like the following:

# device used for stereo output
# string, default: plug:front:default
audio.device.alsa_front_device:default


The line we want to change is the audio.device.alsa_front_device:default and more specifically we want to change default to hw: plus the number of the device discovered earlier in /proc/asound/cards.  For example, if the device I wanted to use was labelled identified as "2" when viewing /proc/asound/cards I would change the xine-config line to read:

audio.device.alsa_front_device:hw:2

Now you simply need to save the changes and start Kaffeine.  Once you start playing a clip your audio should be playing through your desired device.

Leave a Reply