These instructions are for installing this program on a 
Ubuntu system.

First you will need a few packages required for compiling 
the program. Open a terminal and enter the following line.

sudo apt-get install build-essential libpulse-dev libpulse-mainloop-glib0 libgstreamer-plugins-base0.10-dev libgtk2.0-dev

You may choose to disable the simulator. To do this open 
the file main.c and change line 195 from
    plugin->use_sim = 1; /* Always use sim, for now */
to
    plugin->use_sim = 0; /* Always use sim, for now */

Now enter the folder where this file is stored. If you saved
it to your desktop use the following line.

cd Desktop/pulse/

Compile the code with make.

make

To run the program use

./pulse /dev/XXX

where XXX is the serial port the cube is conencted to. If your
compurter has a serial port built in this is usually ttyS0. If
you are using a USB to serial converter it is usually ttyUSB0.

This code uses PulseAudio to grab the audio that is being played.
By default Ubuntu uses PulseAudio, if you changed your audio 
settings to use something else like Alsa you will need to change
it back to use this code.

***************************IMPORTANT***************************
For this code to work properly the cube must be reprogrammed
with the pulse.hex file. To do this you will need a AVRISP mkII
or compatible programmer.
