Mac Carbon compilation update ...

From: John Lazzaro (lazzaro@cs.berkeley.edu)
Date: Mon Oct 08 2001 - 20:54:34 EDT


Hi everyone,

        A suggestion from the PortAudio folks on compiling the
test examples, in case anyone else besides Richard is trying

----------

From: Dominic Mazzoni <dominic@minorninth.com>
To: John Lazzaro <lazzaro@cs.berkeley.edu>
CC: portaudio@techweb.rfa.org, RWD@blueyonder.co.uk
Subject: Re: [Portaudio] compiling tips for Mac Sound Manager driver?

> I have tried to build the first program (tone) using Project Builder
> running OS X 10.1 (installed on a 400MHz iMac). After a small amount of
> fiddling (being very new to both) I got it compile EXCEPT for one
> undefined function: NewSndCallBackProc, which I can find no sign of in
> Carbon (not in the API list), or anywhere else for that matter - it
> appears not to be supported.

Try NewSndCallBackUPP instead (UPP stands for "Universal Procedure
Pointer"). A whole lot of MacOS API routine names changed from
xxxxProc to xxxxUPP a while back, but #defines in the header files
let you use either the old name or the new name. The Carbon API
on Mac OS X is less forgiving.

If NewSndCallBackUPP isn't right, look through "Sound.h" and I'm
sure you'll find it by hand - the header file isn't that long.
(I'd do it for you but I'm not at my Mac right now.)

- Dominic

----------

                                                        --jl



This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:43 EST