gyraf said:
Great - thanks!
And yes, I'll need it to work over the internet - it's here it would be brilliant for remote hardware demo...
HAH .. it works!
I am sitting in the office at work, on my MacBook Pro, and I use Apple's Back To My Mac VNC to share the screen of the iMac at home, and the Mac at home is playing some Pat Metheny.
Here is what I did. For both send and receive I used the AU Lab program, which gets installed along with the developer tools. AU Lab is a simple Audio Unit host program.
a) Open port 52800 on the router for both TCP and UDP. That is the default port used by AUNetSend and AUNetReceive.
b) On the "Send" machine, launch AU Lab. Create a new document (File => New). For a configuration, the Stereo Out is fine. Change the Audio Input Device to "None," and click "Create Document."
c) From the menu, choose "Edit => Add Audio Unit Generator." A dialog pops up, with the default Generator being AUAudioFilePlayer. This will let you play files from the sending machine. Click OK.
d) Now in the document, you'll see Generator 1 and Output 1. At the top of Generator 1 you'll see the AU Generator plug-in. Double-click that to bring up the file list dialog. Here is where you specify the file(s) to play, and whether they loop and such. if you double-click the "Audio Files +..." a standard file-select dialog pops up. Choose whatever files you want to play.
e) In the Generator 1 "channel strip," double-click on one of the Effects slots, and the Audio Unit chooser pops up. Look for and select AUNetSend. A dialog pops up.
f) Give the thing a Bonjour name and make up a password. Choose the data format. You probably want one of the compressed formats unless you're sure your net connection won't drop packets. Click "connect" and the transmit connection starts.
g) Back in the Generator's Audio Files dialog, press "play," and you'll see the meters light up along with the source music.
h) On the receive machine, launch AU Lab and create a new document like on the send machine. Only in this case, instead of choosing AUFilePlayer for the generator, choose AUNetReceive.
i) Double-click on the AUNetReceive at the top of the Generator channel strip. A dialog opens. Click on the "+" in the lower left corner to add a new host. Give it a display name (can be anything), and then for Host Name and Port, you need to add something that resolves to your sending machine. This is the tricky part. I use a dynamic DNS system, so I have a host name that resolves to the home network, and the port is the same 52800 that is open on the router and that the AUNetSend uses. For example, the host name and port can be footer.gyraf.org:52800. Also enter the password you set for the connection. Click OK to close the dialog.
j) Select the host you set up and click "Select Host." The receiver will immediately try to connect to the sender, and the status will reflect that . If a connection is made, you will start to hear the audio that is being transmitted and your channel strip meters will light up.
So there it is.