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.







Hi everyone,
I need to confess i know almost nothing regarding codes and softwares.
Just got an airport express and would like to have other signals than I Tunes on the speakers out there.
Succeeded in getting RaopX to work (yeah !) with the 9 sec delay (fair enough, understand it’s not easy to fix).
One question though : You guys mention the soft consumes 700Mb / hour. Is there a need to trash all these data when stopping the terminal apps or are the data automatically trashed ?
It may be a stupid question… Sorry !
But thanks in advance for the answer !
@bibi75
Not a stupid question at all.
As long as RaopX is stopped in an ordinary fashion there is no need to manually delete the temp file. RaopX will do that for you. However if you just tear down the terminal without stopping RaopX first the temp file will remain on your drive until you start RaopX again or manually delete it. With todays large hard drives leaving the temp file around shouldn’t do any harm. If you want to keep an eye on it, it is stored in ‘/tmp/raopxtmpbuffer’. If it’s still there when RaopX isn’t running, just delete it.
Hersson
Thanks Hersson,
I guess that it is exactly where my skills are limited !
I’m uncomfortable with this part : “just tear down the terminal without stopping RaopX first”.
I basically exit the terminal (the first miracle is that i found the terminal apps !) shutting the program down. Then, i don’t know whether RaopX is still running.
I’m also uncomfortable with the path you provided. I just do not know what it means, ie do not know where to go and check out.
Thanks in advance for your answer and for the training session !
If you press [Ctrl]+C, and then [Enter], RaopX will shutdown and remove the temp file. If you just close the terminal window (tear down), RaopX will stop but the temp file will remain on your drive. It will then be removed the next time you start RaopX.
Here’s what I’m getting:
RaopX 0.0.4
Searching for RAOP capable devices
Connected to J-P-LR.local.
Opening AudioQueue
Bus error
thanks for any advice!
Works as intended! Thank you so much
Been looking for this kind of free app for a long time
Just a minor tip to others. In order to run without manually running Terminal and typing “RaopX”
Create a text file under /Applications folder (or any folder). Put “/usr/local/bin/RaopX” in the first line. Make sure to add an empty 2nd line (i.e. press Enter after the 1st line)
Open Terminal. Then do “chmod +x /Applications/your_text_file”
In Finder, right click on the text file, then click “Get Info”. Then under “Open with” select Terminal
Hi, I used the Installer and receive the following error when i start RaopX and select an Airport Express.
Which device would you like to use
Enter number and press : 1
RaopX(458) 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
Installed Soundflower, RaopX as described. Entered sudo RaopX. Here’s what I got:
RaopX 0.0.4
Searching for RAOP capable devices
ERR: exec_request: request failed, error 453
@BWoo Check conversation with Ian from January 30th
I have installed RaopX all three times, put each version of the executable in different folders and ran them all, using both sudo and non-sudo, and EVERY TIME I get the following error:
ERR: exec_request: request failed, error 401
Snow Leopard, why dost thou forsake me so?
Thou shall not sequre thy airport with password if using RaopX
Thanks for this, it works a treat. Hope you continue to update and get that stream buffer down from 9 seconds.
Love to give some tips to others, but I had no problems with my Airport Express. Turn on Airport, select Soundflower 2ch for input and output in Audio preferences, ensure the Airport is contactable and then start the stream.
Love this ap! Thank you!!
To clarify, the ap DOES work even if there is a password on the wireless network.
I can’t get it to work!
The only thing I hear is myself captured by my laptop’s internal microphone!
What am I doing wrong?
Excellent!
I have made two apps with AppleScript-Editor to start and stop the RaopX stream. One click on the start app and seconds later you can listen to your favourite music. The start app changes the system preferences, starts the terminal, types RaopX and starts the stream and it opens grooveshark.com in Safari. One click on the other app to stop the stream, close the terminal and restore the system preferences. The apps work flawlessly on my laptop but are of course written for my Dutch Mac Os. It should not be too much of a problem to make the necessary changes in the scripts, though. Save the scripts as programs (Save as …). Put them in the program folder, drag the icons onto the dock.
The two scripts can be found here: http://users.fulladsl.be/spb12567/GeluidRaopX.scpt and http://users.fulladsl.be/spb12567/GeluidLaptop.scpt
Nice!
Thanks for sharing.
I tried to get jdan’s scripts running on an iMac running English Mac OS X 10.6.5. With the help of a Dutch -> English dictionary I made the following changes:
Geluid -> Sound
Uitvoer -> Output
Invoer -> Input
Using AppleScript Editor I Compiled the modified GeluidRaopX.scpt and then tried to run it, but got an error message:
“System Events got an error: Access for assistive devices is disabled.”
for the line
click radio button “Output”
I checked that the following file exists:
/private/var/db/.AccessibilityAPIEnabled
For Mac OS X 10.6.5 the Output and Input options are not in the form of radio buttons, but just selectable lines in a list. Could this be the problem?
Another point which is not clear to me (I’m not familiar with AppleScript) is how to produce and install apps from the scripts.
Thanks in advance for any help.
You have to check “enable access for assistive devices” under universal access in system prefs
This option is checked (enabled).
Hmm..“System Events got an error: Access for assistive devices is disabled.” strange….
I don’t use OS X anymore, so I haven’t tried jdan’s scripts myself.
OK the scripts now run without errors – I’m not sure why the error was occurring previously. However, The second part of the script (setting the input device to Soundflower) didn’t work correctly, and resulted in sound transmission being blocked. I deleted this part of the script and everything worked fine (it seems that it’s not necessary to change the input device).
Thanks to Hersson and jdan for these useful tools.
Thanks for your hard work on this app! Unfortunately though when testing it, I installed it on a work machine that I’m not really supposed to be messing around with. How would I go about completely uninstalling Raopx?
Depending on whether you build it your self or used the installer here is a complete file list, just delete every file on this list to remove RaopX:
RaopX executable:
/usr/local/bin/RaopX
Libsamplerate library:
/usr/local/lib/libsamplerate.0.dylib
/usr/local/lib/libsamplerate.a
/usr/local/lib/libsamplerate.la
The installer also puts a few files in /private/var/db/receipts/
they are all called com.hersson.raopxVersion004.*something*
That should be all.
Thanks for raopx icm soundflower. It works really well. The sound is better than Airfoil. However, I need to op the terminal app every time that I start my Macbook. Is there a method to do this automatically or to have the settings fixed.
Take a look at the scripts made to automate the device switching. Maybe they can help you out:
From jdan
From Sam
Sam’s script modified by Joscha to include deletion of /tmp/raopxtmpbuffer on quit
installed RaopX_v0.0.4.dmg (2.6 MB) on 10.5.8 No Dice! Can not find /usr/local/bin/. Do I have to uninstall before trying to build from source which does not seem to be helping out.
Most of the time I get an error 401.
401 is unauthorized. Disable the “iTunes speaker password” on the AE
I disabled the AE speaker password but then got :
Connected to Date-Shake.local.
Opening AudioQueue
Bus error
I tried to move RaopX to applications folder doing the following:
gregory-sullivan-sullivans-macbook-pro:~ gregorysullivansullian$ mv /usr/local/bin/Raopx ~/Applicatons
mv: rename /usr/local/bin/Raopx to /Users/gregorysullivansullivan/Applicatons: Permission denied
gregory-sullivan-sullivans-macbook-pro:~ gregorysullivansullivan$ sudo mv /usr/local/bin/Raopx ~/Applicatons
Password:
gregory-sullivan-sullivans-macbook-pro:~ gregorysullivansullivan$ Raopx
-bash: Raopx: command not found
gregory-sullivan-sullivans-macbook-pro:~ gregorysullivansullivan$ Raopx
-bash: Raopx: command not found
That didn’t work so I tried to reverse the command:
gregory-sullivan-sullivans-macbook-pro:~ gregorysullivansullivan$ mv /usr/local/bin/Raopx ~/Applicatons no
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source … directory
gregory-sullivan-sullivans-macbook-pro:~ gregorysullivansullivan$ Rapox
-bash: Rapox: command not found
No Dice.
Did I do something horribly wrong?
What should I do?
Also I have installed RaopX multiple times using both methods listed here do i need to uninstall and start fresh??? If so how is that done.
Thank You,
Greg
Hi Greg.
I am afraid you have a few typos among your commands.
Try this:
Reinstall RaopX using the installer.
If/when you get the bus error move RaopX to the /Applications folder:
sudo mv /usr/local/bin/RaopX /Applications/RaopX
Now try starting RaopX by running it with the new full path:
/Applications/RaopX
———————————————
To clear things up:
In your previous attempt you wrote ~/Applicatons and not /Applications/ which is two errors in one. Instead of moving the executable to the Applications folder you moved and renamed it to a file called Applicatons in your home folder. Which probably works, but then you’ll have to run it by entering Applicatons at the prompt and not RaopX.. where you also made a small typo.. it’s RaopX with capital R and X,( which I admit is stupid)
Hope it works out.
-Hersson-
Right on! You are unbeliviably helpful. And I could not have done this with out cutting and pasting your cmmds in. Thank you thank you thank you.
When are you building RaopX for the Iphone? I think it would be reasonably popular.
You are very welcome
Since Apple added Airplay to iOS 4.2 there is really no need for RaopX on the iPhone.
)
(And I should probably fix the bugs in the current version before starting a new project
Hí,
Can you help me please?
I get the following problem:
Searching for RAOP capable devices
ERR: gethostbyname: ‘AirPort-Express-van-James-Jones.local.?’
MacBook-Pro-van-James-Jones:~ JamesJones$
What do I have to do?
James
Hi James.
Would it be possible for you to try and change the name of your AE to something shorter?
You could also try to add the name and ip of your AE to your /etc/hosts file.
Thnx! I shortened my AE name and it worked.
Greetings, James
Nice