SDL_cdrom.h File Reference

#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Data Structures

struct  SDL_CDtrack
struct  SDL_CD

Defines

#define SDL_MAX_TRACKS   99
#define SDL_AUDIO_TRACK   0x00
#define SDL_DATA_TRACK   0x04
#define CD_INDRIVE(status)   ((int)(status) > 0)
#define CD_FPS   75
#define FRAMES_TO_MSF(f, M, S, F)
#define MSF_TO_FRAMES(M, S, F)   ((M)*60*CD_FPS+(S)*CD_FPS+(F))

Enumerations

enum  CDstatus {
  CD_TRAYEMPTY, CD_STOPPED, CD_PLAYING, CD_PAUSED,
  CD_ERROR = -1
}

Functions

int SDL_CDNumDrives (void)
const char * SDL_CDName (int drive)
SDL_CD * SDL_CDOpen (int drive)
CDstatus SDL_CDStatus (SDL_CD *cdrom)
int SDL_CDPlayTracks (SDL_CD *cdrom, int start_track, int start_frame, int ntracks, int nframes)
int SDL_CDPlay (SDL_CD *cdrom, int start, int length)
int SDL_CDPause (SDL_CD *cdrom)
int SDL_CDResume (SDL_CD *cdrom)
int SDL_CDStop (SDL_CD *cdrom)
int SDL_CDEject (SDL_CD *cdrom)
void SDL_CDClose (SDL_CD *cdrom)


Detailed Description

This is the CD-audio control API for Simple DirectMedia Layer

Define Documentation

#define FRAMES_TO_MSF ( f,
M,
S,
 ) 

Value:

{                                       \
        int value = f;                                                  \
        *(F) = value%CD_FPS;                                            \
        value /= CD_FPS;                                                \
        *(S) = value%60;                                                \
        value /= 60;                                                    \
        *(M) = value;                                                   \
}


Generated on Tue Feb 3 20:00:10 2009 for SDL by  doxygen 1.5.8