RaopX

Comments: 256 Comments

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
  • Install RaopX – One of two options
  • Option one: Download RaopX_v0.0.4.tar.gz
  • tar zxvf RaopX_v0.0.4.tar.gz
    cd RaopX_v0.0.4
    ./configure
    make
    sudo make install
  • Option Two: Download and unzip the Xcode project. Open project in Xcode and build it. Copy executable to e.g./usr/local/bin/
  • Download and install Soundflower – follow instructions
  • Enable Soundflower – Set ‘Soundflower (2ch)’ as default input and output device in System Preferences
  • Start RaopX – Open Terminal.app and enter RaopX at the prompt


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.

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.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Google Bookmarks
  • StumbleUpon
  • FriendFeed
256 Comments
  1. avatar Mikkel says:

    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!

  2. avatar Anders says:

    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!

  3. avatar Rick Walker says:

    Thank you for this. It really works well.

  4. avatar surfninja says:

    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.

  5. avatar Benny Lichtner says:

    Works great! Is the 9-second buffer really necessary though?

  6. avatar Faisal Mudara says:

    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$

    • avatar Hersson says:

      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?

  7. avatar Espen says:

    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

  8. avatar davehallen says:

    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

    • avatar Hersson says:

      @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

  9. avatar Esaú says:

    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?

  10. avatar Esaú says:

    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.

    • avatar Hersson says:

      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)

  11. avatar Barcaholic says:

    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.

  12. avatar Johan says:

    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!

  13. avatar Sn0opy says:

    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.

  14. avatar David says:

    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…

  15. avatar Adam says:

    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.

  16. avatar Andrew says:

    Awesome! I had no problem installing and figuring out how to set it up, despite very little experience with terminal etc, thanks hersson!

  17. avatar AG says:

    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

  18. avatar Don says:

    I keep getting “ERR: exec_request: request failed, error 453″

  19. avatar Tom Mikkelsen says:

    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!

  20. avatar Scout says:

    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!

    • avatar Hersson says:

      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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


− 2 = five

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Welcome , today is Sunday, May 19, 2013