src/cdrom/macosx/AudioFilePlayer.h
branchSDL-1.2
changeset 4369 f14cf9d71233
parent 4368 4c088d2b29eb
child 5952 c838b121901e
equal deleted inserted replaced
4368:4c088d2b29eb 4369:f14cf9d71233
    33 #include <CoreServices/CoreServices.h>
    33 #include <CoreServices/CoreServices.h>
    34 
    34 
    35 #include <AudioUnit/AudioUnit.h>
    35 #include <AudioUnit/AudioUnit.h>
    36 #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1050
    36 #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1050
    37 #include <AudioUnit/AUNTComponent.h>
    37 #include <AudioUnit/AUNTComponent.h>
       
    38 #endif
       
    39 
       
    40 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
       
    41 typedef SInt16 FSIORefNum;
    38 #endif
    42 #endif
    39 
    43 
    40 #include "SDL_error.h"
    44 #include "SDL_error.h"
    41 
    45 
    42 const char* AudioFilePlayerErrorStr (OSStatus error);
    46 const char* AudioFilePlayerErrorStr (OSStatus error);
    78     AudioUnit       (*GetDestUnit)(struct S_AudioFilePlayer *afp);
    82     AudioUnit       (*GetDestUnit)(struct S_AudioFilePlayer *afp);
    79     void            (*Print)(struct S_AudioFilePlayer *afp);
    83     void            (*Print)(struct S_AudioFilePlayer *afp);
    80 
    84 
    81 /*private:*/
    85 /*private:*/
    82     AudioUnit                       mPlayUnit;
    86     AudioUnit                       mPlayUnit;
    83 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
       
    84     FSIORefNum                      mForkRefNum;
    87     FSIORefNum                      mForkRefNum;
    85 #else
    88     
    86     int                             mForkRefNum;
       
    87 #endif
       
    88 
       
    89     AURenderCallbackStruct          mInputCallback;
    89     AURenderCallbackStruct          mInputCallback;
    90 
    90 
    91     AudioStreamBasicDescription     mFileDescription;
    91     AudioStreamBasicDescription     mFileDescription;
    92     
    92     
    93     int                             mConnected;
    93     int                             mConnected;