> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:fpc-pascal- > [EMAIL PROTECTED] On Behalf Of Vincent Snijders > Sent: 29. august 2008 12:27 > To: FPC-Pascal users discussions > Subject: Re: [fpc-pascal] Mac OSX API call > > I think it should be (no var for the pointer):
I tried, and same result. Could a Mac OSX API call return -50 even though the types are correct, but the contents of them are not what it expected? I would assume -50 is only after a check for types in the parameter list, and check is done before even calling the API. Thanks, Normann > function AudioFileReadPacket(inAudioFile: AudioFileID; > inUseCache: Boolean; > var outNumBytes: UInt32; > var outPacketDescriptions: > AudioStreamPacketDescription; //also tried Pointer > inStartingPacket: SInt64; > var ioNumPacket: UInt32; > outBuffer: Pointer): OSStatus; external > name '_AudioFileReadPackets'; mwpascal; > > Vincent _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal