src/cdrom/macosx/CDPlayer.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
    39 {
    39 {
    40 #endif
    40 #endif
    41 
    41 
    42     typedef void (*CDPlayerCompletionProc) (SDL_CD * cdrom);
    42     typedef void (*CDPlayerCompletionProc) (SDL_CD * cdrom);
    43 
    43 
    44     void Lock ();
    44     void Lock();
    45 
    45 
    46     void Unlock ();
    46     void Unlock();
    47 
    47 
    48     int LoadFile (const FSRef * ref, int startFrame, int endFrame);     /* pass -1 to do nothing */
    48     int LoadFile(const FSRef * ref, int startFrame, int endFrame);      /* pass -1 to do nothing */
    49 
    49 
    50     int ReleaseFile ();
    50     int ReleaseFile();
    51 
    51 
    52     int PlayFile ();
    52     int PlayFile();
    53 
    53 
    54     int PauseFile ();
    54     int PauseFile();
    55 
    55 
    56     void SetCompletionProc (CDPlayerCompletionProc proc, SDL_CD * cdrom);
    56     void SetCompletionProc(CDPlayerCompletionProc proc, SDL_CD * cdrom);
    57 
    57 
    58     int ReadTOCData (FSVolumeRefNum theVolume, SDL_CD * theCD);
    58     int ReadTOCData(FSVolumeRefNum theVolume, SDL_CD * theCD);
    59 
    59 
    60     int ListTrackFiles (FSVolumeRefNum theVolume, FSRef * trackFiles,
    60     int ListTrackFiles(FSVolumeRefNum theVolume, FSRef * trackFiles,
    61                         int numTracks);
    61                        int numTracks);
    62 
    62 
    63     int DetectAudioCDVolumes (FSVolumeRefNum * volumes, int numVolumes);
    63     int DetectAudioCDVolumes(FSVolumeRefNum * volumes, int numVolumes);
    64 
    64 
    65     int GetCurrentFrame ();
    65     int GetCurrentFrame();
    66 
    66 
    67 #ifdef __cplusplus
    67 #ifdef __cplusplus
    68 };
    68 };
    69 #endif
    69 #endif
    70 
    70