Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slouken committed Oct 20, 2009
1 parent 08265f2 commit 9523b7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cdrom/macosx/AudioFilePlayer.h
Expand Up @@ -80,8 +80,12 @@ typedef struct S_AudioFilePlayer

/*private:*/
AudioUnit mPlayUnit;
SInt16 mForkRefNum;

#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
FSIORefNum mForkRefNum;
#else
int mForkRefNum;
#endif

AURenderCallbackStruct mInputCallback;

AudioStreamBasicDescription mFileDescription;
Expand Down

0 comments on commit 9523b7c

Please sign in to comment.