comparison src/cdrom/macosx/AudioFilePlayer.h @ 4368:4c088d2b29eb SDL-1.2

Fixed bug #861 C.W. Betts 2009-10-19 19:16:41 PDT In 64-bit libraries, the fork reference is a different size than in 32-bit. Apple has tried to help this transition by making a typedef called FSIORefNum, but it is only available in Mac OS X 10.5 headers or later. I first noticed this bug in Mac OS X's CD player code, and the patch is set to fix it accordingly. This might also be an issue in SDL_QuartzVideo.m
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Oct 2009 03:45:06 +0000
parents 386181851388
children f14cf9d71233
comparison
equal deleted inserted replaced
4367:2d00ed718720 4368:4c088d2b29eb
78 AudioUnit (*GetDestUnit)(struct S_AudioFilePlayer *afp); 78 AudioUnit (*GetDestUnit)(struct S_AudioFilePlayer *afp);
79 void (*Print)(struct S_AudioFilePlayer *afp); 79 void (*Print)(struct S_AudioFilePlayer *afp);
80 80
81 /*private:*/ 81 /*private:*/
82 AudioUnit mPlayUnit; 82 AudioUnit mPlayUnit;
83 SInt16 mForkRefNum; 83 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
84 84 FSIORefNum mForkRefNum;
85 #else
86 int mForkRefNum;
87 #endif
88
85 AURenderCallbackStruct mInputCallback; 89 AURenderCallbackStruct mInputCallback;
86 90
87 AudioStreamBasicDescription mFileDescription; 91 AudioStreamBasicDescription mFileDescription;
88 92
89 int mConnected; 93 int mConnected;