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.







You have got to be kidding me! This is the most cryptic way of getting airplay to work I could not make heads or tails of it and i did not get anywhere near to getting it to work!
Sorry to hear that.
-Hersson-
Hi,
I got the thing installed, and i appears to work in the terminal. My apple TV is found, and the stream starts. But I can’t hear anything. I changed soundflowerbed (2ch) to default in the sound and midi preferences for both output and input. Is this the correct place to change the settings?
thanks!
Hi,
RaopX does not work with the Apple Tv.
That’s why it says ‘No Tv support’ in the known issues section.
-Hersson-
aha. I see. When skimming through I thought that was a error that could occur.
Thanks anyway!
I agree I could have been more clear when writing that.
The Tv uses a different encryption key, which I don’t have, and that’s why it doesn’t work.
Thank you for this. It really works well.
This is great! Thank you!
One piece of feedback: I struggled to install Soundflower because after it said installation successful and I opened the program I still couldn’t see it as an output/input option under System Preferences > Sound. After a few attempts I finally tried reinstalling and that worked, so maybe that’s what the deal was. Might be helpful to point out that a reinstall is necessary though–I didn’t think it would be because most apps I download don’t require one.
Works great! Is the 9-second buffer really necessary though?
Yes, I think so, but please don’t take my word for it.
Change it at make up your own mind.
In raop_play.h change the BUFFER_SECONDS
After following the instructions you posted to Greg I still cannot get it to work. Could you please just type the commands in for me so I can copy and paste them
note this is what pops up first: faisal-mudaras-macbook-pro:~ Fizzi$
Well, the commands are exactly the same as I posted to Greg:
sudo mv /usr/local/bin/RaopX /Applications/RaopX
/Applications/RaopX
If it doesn’t work try and explain what happens.. do you see any error messages?
Brilliant!! I can now play music DVDs on my kitchen stereo from my living room Mac Mini HTPC.
Thanks ever so much, Hersson! It is simply wonderful to see excellent freeware still at large (20 years ago I used to share a free text converter (programmed in Turbo Pascal for Mac(!), this was back when my brain still worked …).
If I may make one small suggestion: it took me a bit of time to figure out that “ERR: exec_request: request failed, error 401″ meant that my AE’s airplay password should be turned off for this to work. Perhaps this could be pointed out more clearly in the documentation, or even added to the error msg itself?
Anyway, thanks again, you made my day!
espen
Espen,
thank you very much for your nice comment and kind words.
-Hersson-
This error code occurs at my terminal all the time: get_tcp_nconnect addr=192.168.178.13, port=5000
Have you ever experienced this? Would be great to hear from you!
Greets ben
Ben,
I’ve have seen one or two report that same error, but I have not experienced it myself.
What’s your setup like?
@Ben
I’m stuck with the same error, on page 5 is my bug report. I also opened up a issue at github https://github.com/albertz/shairport/issues/100 because I’m running shairport.pl (AirPlay Server Hack). What server do you use (e.g. AirPort, Apple TV etc. or somethin unoffical like me)?
Hi, first of all can I just say how great this freeware is!
I noticed further down in the comments list somebody asked about the 9 second buffering and you gave them a solution to change it. I wonder if you could explain it in a few more steps for someone like me who isn’t great with this kind of thing.
Thanks
@davehallen
If you download the source code I think you’ll understand. There is a file called raop_play.h, and in that file there is a line saying BUFFER_SECONDS 9, change that to your liking and recompile, and you’ve changed the size of the buffer accordingly… Still won’t make RaopX work any better though, and that was my point with the other comment, but as I said then.. please change it and make up your on mind.
-Hersson
Before RaopX I had an Airport Express for a year or so and couldn’t use it without music skipping, thanks for that. Now I want to move the cache file to another volume, how can I do that?
Search for “/tmp/raopxtmpbuffer” in raop_play.c and change the path.
I changed the BUFFER_SECONDS line in raop_play.h from 9 to 4 (in fact, I tried many values) but I think the buffer is still 9 seconds, even when Terminal shows this message
Connected to es.local.
Opening AudioQueue
Building 4 seconds buffer. Please wait
Any idea what may be happening? Cheers.
The BUFFER_SECONDS changes the number of seconds recorded to the buffer file before starting playback.. all though I think the delay in the original raop_play is 9 seconds, and that’s why I seems like the change in this value has no effect. (Not entirely sure about this… it’s been a long time)
Hi! Is the installer package working with Lion? Because according to several forums soundflower 1.5.2. doesn’t work with lion. Anyone tested it or has a solution? I know there is a 1.5.3. beta for lion but for me as a windows/mac switcher and therefore beginner it’s much too complicated.
I don’t know about Soundflower, but although I haven’t tested it, the RaopX installer should work on Lion.
Hi, i’d like to know if sunflower works/can be installed on OS X Lion. For me i’d like to install RaopX but am blocked at this stage. Can’t set it as default input and output device in System Preferences just because i don’t see it…
Tell me if i’m doing wrong and what i should do? Thanks!
RaopX isn’t a device. It’s just a client which gets sound input from a device. Soundflower is nothing else then a device output=input device. Means: Install Sunflower, activate it and RaopX should stream that to your Airport.
Btw, i’ve got the same issue with Shairport. Does not work for me. Even the same error, someonw else already mentioned.
Works reliably for me on Lion (10.6.1), but I see it as a proof-of-concept so far. Sunflower and RaopX would best be integrated (so you only choose the device, which runs all necessary code, and then the Airtunes device is configured in a System Preferences pane). That would hopefully also take care of the crash (or quitting) when putting the machine to sleep.
I reckon the authors have tried to reduce the excessive buffering. I guess iTunes can get away with it as it has the sound data available anyway, rather than working with a real-time stream. In that case, there wouldn’t be much one could do about it…
Thanks for this nice solution for home audio. A little confusing to set up, but possible. Though changing between PC and airport output is a bit of a hassle, its worth it.
Awesome! I had no problem installing and figuring out how to set it up, despite very little experience with terminal etc, thanks hersson!
Raopx wasn’t for me, but now I’d like to remove all of the code/executables that were installed, but I don’t how do it. How do this?
Thanks
AG, here is a – Uninstall HowTo
I keep getting “ERR: exec_request: request failed, error 453″
Don, take a look here
This looks like an awesome project – however, it doesn’t work right now. When I run RaopX, this appears:
MacBook:~ tom$ RaopX
RaopX 0.0.4
Searching for RAOP capable devices
ERR: gethostbyname: ‘Toms-AirPort-Express.local.?’
The Airport isn’t connected to the internet right now – using mobile internet – is that a problem?
Cheers, keep up the good work!
Tom, take a look at this and see if that helps.
This software rocks, thanks so much. But my buffer, though set to 9, takes 20 seconds, each time. I downloaded the .dmg file, so I’m not sure how to change that. Thanks!
Thanks!
The buffer should be 9 seconds and not 20, no clue whats going on there, but in regards to how to really change it: You can’t without a rewrite of the program.
I’ve made some comments about how to change the size of the buffer file, but that does not have any effect on the delay which still remains.