[Ham-Mac] Mac Software? ? ?
[email protected]
[email protected]
Tue, 10 Jun 2003 19:34:58 -0500
On Tuesday, June 10, 2003, at 05:28 PM, Tom Dove wrote:
> Many Linux programs are easy to port over to Apple X11 on Mac OSX, but
> some can be tough. If WSJT uses sound I/O on Windows, it will have a
> soundcard.h file that's specific to the Windows system. Apple X11 on
> Mac OSX uses esound, instead (the file will be esd.h). Since many
> Linux programs can be compiled to use esound, the porting may not be
> too difficult; everything depends on the specific program. In
> DarwinPSK, for example, Volker had to rewrite everything to use esound
> for sound I/O, but that works fine on Linux now, too.
An alternative is to port it to use a different API, like portaudio.
http://www.portaudio.com
I used PortAudio for EchoMac, because it was pretty straightforward to
move the soundcard.h stuff over, and also it had the advantage of then
calling CoreAudio stuff directly on the Mac, OSS on Linux, etc... It
wasn't going through yet another program like the esd daemon to get you
to the hardware.
I've had my fun porting from Linux to the Mac, it's time for someone
else to have fun. All the source code I used in EchoMac is available,
and the bundle includes the EchoMac GUI, the portaudio stuff, and the
echoLinux code modified to use portAudio. It should be enough to get
someone started in some direction or other... ;-)
-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
- Attempts to make thine own star shine shall lead thee into darkness.
-----------------------