What is RaopX
RaopX is a Apple Airport Express client for Os X based on raop_play.
What is the main difference between RaopX and raop_play
The original raop_play lets you stream audio files to your Airport Express. RaopX streams any audio that comes in on the default input device of your Mac, and combined with the routing functionality of Soundflower this gives you the ability to stream audio from any application you’ve got on your Mac to the Airport Express.
Requirements
- Xcode Developer Tools – Available from your Os X install DVD, or you can download it from Apple Developer Connection (Only needed if building from source)
- libsamplerate (Secret Rabbit Code) – Get it here (Only needed if building from source)
- Soundflower – Get it here
Install Instructions: Using the installer package
Only for Intel Macs running OS X 10.5 or newer
- Download and install Soundflower – follow instructions
- Enable Soundflower – Set ‘Soundflower (2ch)’ as default input and output device in System Preferences
- Download and install RaopX – Download the RaopX Installer (dmg file) and follow instructions. Installs the RaopX executable and the libsamplerate library into /usr/local/bin and /usr/local/lib
- Start RaopX – Open Terminal.app and enter RaopX at the prompt
Install Instructions: Building from source
- Install Xcode Developer Tools – follow instructions
- Download and install libsamplerate
tar zxvf libsamplerate-0.1.7.tar.gz cd libsamplerate-0.1.7 ./configure make sudo make install
tar zxvf RaopX_v0.0.4.tar.gz cd RaopX_v0.0.4 ./configure make sudo make install
Known Issues
- 9 seconds delay because of buffering
- No support for ‘iTunes Speaker Password’.
- No Tv support
- Consumes disk space while in use (/tmp/raopxtmpbuffer). Approximately 6-700MB per hour
I only get ‘Bus Error’, ‘Segmentation Fault’ or ‘Command not found’
Possible workaround: See if you can find the RaopX executable by running ‘ls -l /usr/local/bin’ (without the quotes). if you get permission denied, try with sudo. If the file is there, try moving it to e.g your home folder or the Applications directory and run it from there. (HowTo)
Downloads
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- RaopX_v0.0.4.dmg (2.6 MB) *Only for Intel Macs running OS X 10.5 or newer
- RaopX_v0.0.4.tar.gz (88.7 kB)
- RaopX_v0.0.4XCode.zip (57.3 kB)
Uninstall Instructions
Open Terminal.app and cut and paste the following commands. One line at a time.
sudo rm /usr/local/bin/RaopX sudo rm /usr/local/lib/libsamplerate.* sudo rm /private/var/db/receipts/com.hersson.raopxVersion004.*
Why doesn’t my comment show up among the others
First of all: Thanks to everyone for taking the time try RaopX and especially to all of you posting comments, but as of today (22nd of November 2011), I will not approve and publish comments with questions answered several times before. There are now approximately 250 comments on this page, which makes it tedious to browse through for anyone looking for a solution to a problem. I’ll keep the comments open for anything new, but will not approve and publish anymore duplicates. It’s now a little over two years since I posted this, and I think all of the more common questions have been answered to some extent. Some only with a ‘I don’t know..’, but that has not changed. Lately there has been an increase in comments about how to uninstall, so I have just added a small section on how to do that. If you post a comment and it doesn’t show up. Please take the time to read through what is already here, or you can contact me on twitter. Also in regards to the ‘thank you’ comments, I really appreciate them, but for the reason mentioned I won’t publish anymore of them.
Thank you.







Works great routing GarageBand to Soundflower which RaopX sends to speakers!
The 9 second delay (buffer) makes it useless to do musical work though. Is there a way to remove the buffer / delay?
Hi , thanks for this , its amazing .
The command ‘sudo mv /usr/local/bin/RaopX /Applications/RaopX’ to move to the applications was the only way i could get it to work at all .
Much respect for bringing the music .
Success!
Many Thanks to Hersson!
Genius!!
Tried to install a script for ease ( and to avoid Terminal, but can’t seem to get it work.
Oh well, will do without
Cheers
Script runs correctly and I can see output to the AE but no audio out.
Jim.
Try without any scripts and see if that works. (which one did you use by the way)
hi, I tried to make it worked but i’m faced to this message
MacBook-Pro-de-jra:~ jra$ RaopX
RaopX 0.0.4
Searching for RAOP capable devices
ERR: gethostbyname: ‘AirPort-Express-de-DRAP-Jean-Marie.local?’
can anybody help me with this, I m a noob with a mac terminal
@jra – Take a look at this
After finally getting RaopX to work all I can hear is the internal microphone on the airport express. Changed audio settings to Soundflower. Any ideas?
@Nathan
Running RaopX as super user (with sudo) has that effect. I you have to run RaopX with sudo to run it, try moving the executable to your home folder or the /Applications/ directory like described in the “I only get bus error…… ” paragraph above.
Please port this application to Android!
Please tell me how to uninstall raopx and the secret code
thanx
Take a look at this
Hi there,
I was about to say I’m having issues.. but then realised my speakers were unplugged from my Airport Express. Thanks so much for this, it’s great, works like a charm!
Hi,
I have started RaopX yesterday and the app was just perfect. I could play the sound of my computer on my Hi-Fi. Today, I start the app with the Terminal and this is what I got:
Which device would you like to use
Enter number and press : 0
RaopX(536) malloc: *** error for object 0×2: pointer being reallocated was not allocated
*** set a breakpoint in malloc_error_break to debug
ERR: rtspcl_add_exthds: realloc failed: Cannot allocate memory
Can you explain me how to solve this please? I don’t know how to use the code in the Terminal… Should I uninstall the app and reinstall?
Very interesting.
This error has been reported a couple of times before, but this is the first time anyone has had a working installation and then later reported an error. I am sorry to say that I don’t know what causes this. If you reinstall and/or get it to work again please post another comment to let others know what you did. Sorry that I can’t be of more help.
same here:
RaopX 0.0.4
Searching for RAOP capable devices
Multiple devices found:
0) device1.local.
1) device2.local.
Which device would you like to use: 1
Enter number and press
raopx(44250) malloc: *** error for object 0xd: pointer being reallocated was not allocated
*** set a breakpoint in malloc_error_break to debug
ERR: rtspcl_add_exthds: realloc failed: Cannot allocate memory
Hit this after installing the RaopX. Rebooting my Mac fixed this problem. Hope this helps. I noticed only one source can be used to a destination at a time. RaopX will prevent iTunes from using that destination. You need to stop RaopX before using iTunes to that destination.
I have the same problem. It sometimes works, sometimes not. Rebooting doesn’t necessarily solve the problem. Try again in a day or two and it may have fixed itself.
I resolved the problem by turning off one of the two devices. It’s been working fine for a week. I suspect the problem happens only when there are multiple devices on the network.
Will the 10sec delay be fixed in short term? Because of this delay it’s a bit annoying to use RaopX. I cannot check a few songs I like because I have to wait 10sec before I hear the new song and when I skip to the next one, it will take another 10sec before I hear the next song
Also when changing the volume the effect will only be applied after the 10sec delay
The short answer is probably not.
Also it would be great if there was a very small tiny app or widget like thingy with 2 buttons: switch between 2ch Soundflower/Internal speakers and the second button that will start/stop RaopX selecting a predefined airplay device automatically.
Take a look through the comments. There exists several applescripts made by RaopX users doing almost exactly what you are looking for.
Is itunes then hiding some special features, because it doesn’t need to buffer for 9 seconds ?
Glad it works here anyway
Kind regards.
Doesn’t work for me
geting error:
RaopX 0.0.4
Searching for RAOP capable devices
ERR: exec_request: request failed, error 500
Marcin,
Error code 500 is ‘Internal Server Error’.
Are you sure everything is ok with your airport express?
Super tool! hank you very much. Now trying to avoud the 9 sec delay: Is it possible to deactivate the internal speaker of my Mac and only send the sound to the AE?
Yes, that is normally how it works.
Any way to stream to more than one AX ? When I start RaopX I get prompted to pick which but would be great if I could both like iTunes can. Perhaps I’m missing something obvious? Thanks.
Simultaneously streaming to multiple devices is not supported.
After moving the file using the sudo command, the executable is in the App folder- great.
BUT, I receive this:
RaopX 0.0.4
Searching for RAOP capable devices
ERR: exec_request: request failed, error 401
logout
What’S wrong??
music on firefow brings the following message:
RaopX 0.0.4
Searching for RAOP capable devices
ERR: exec_request: request failed
logout
I solved the issue! It was the password to access my HiFi. If I remove the password, it works fine! Great app, thank you.
I’m running Shairport on seagate dockstar with debian squeeze. When trying to connect with my macbook pro I’ll get this error:
And on the server side I’ll get:
Use of uninitialized value $dec_args{"cport"} in sprintf at ./shairport.pl line 650.
Use of uninitialized value $dec_args{"dport"} in sprintf at ./shairport.pl line 650.
bye!
Here is the line from shairport.pl
my $transport = $req->header('Transport');
$transport =~ s/;control_port=(\d+)//;
my $cport = $1;
$transport =~ s/;timing_port=(\d+)//;
my $tport = $1;
$transport =~ s/;server_port=(\d+)//;
my $dport = $1;
$resp->header('Session', 'DEADBEEF');
my %dec_args = (
iv => unpack('H*', $conn->{aesiv}),
key => unpack('H*', $conn->{aeskey}),
fmtp => $conn->{fmtp},
cport => $cport,
tport => $tport,
dport => $dport,
# host => 'unused',
Any suggestions? Would appreciate help.
Here is a link to the issue I opened at github: https://github.com/albertz/shairport/issues/100
Thanks so much! I had to do some troubleshooting regarding the setup, but now it works like a charm! I’m uber chuffed. Thanks again!
Silly question
I dowloaded RaopX and tried it (it’s flawless, I loved it), but I now wanna go back to being able to use my old AE cpabilities (play iTunes thru my remote speakers and stuff) but I don’t seem to be able to neither stop RaopX nor uninstall it! Have I ruined my poor old MAc? I’m not much of a connoisseur so a fairly simple way to uninstall/stop RaopX would be so greatly appreciated!
Thanks a bunch!
Vic
Hi Victor.
If you have started RaopX in the normal way by opening a terminal and entering RaopX, hitting [ctrl] + c and then [enter], or just closing that terminal window should be enough to stop it.
You could also open a second terminal window and enter: killall RaopX
If you want to completely remove RaopX just delete the RaopX executable from /usr/local/bin and the libsamplerate* files from /usr/local/lib – there is a more detailed description among the comments here somewhere.
I am sure your “poor old Mac” will be just fine
-Hersson-