Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

SDL_audio.h File Reference

#include <stdio.h>
#include "SDL_main.h"
#include "SDL_types.h"
#include "SDL_error.h"
#include "SDL_rwops.h"
#include "SDL_byteorder.h"
#include "begin_code.h"
#include "close_code.h"

Include dependency graph for SDL_audio.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  SDL_AudioCVT
struct  SDL_AudioSpec

Defines

#define AUDIO_U8   0x0008
#define AUDIO_S8   0x8008
#define AUDIO_U16LSB   0x0010
#define AUDIO_S16LSB   0x8010
#define AUDIO_U16MSB   0x1010
#define AUDIO_S16MSB   0x9010
#define AUDIO_U16   AUDIO_U16LSB
#define AUDIO_S16   AUDIO_S16LSB
#define AUDIO_U16SYS   AUDIO_U16MSB
#define AUDIO_S16SYS   AUDIO_S16MSB
#define SDL_LoadWAV(file, spec, audio_buf, audio_len)   SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len)
#define SDL_MIX_MAXVOLUME   128

Typedefs

typedef SDL_AudioCVT SDL_AudioCVT

Enumerations

enum  SDL_audiostatus { SDL_AUDIO_STOPPED = 0, SDL_AUDIO_PLAYING, SDL_AUDIO_PAUSED }

Functions

DECLSPEC int SDLCALL SDL_AudioInit (const char *driver_name)
DECLSPEC void SDLCALL SDL_AudioQuit (void)
DECLSPEC char *SDLCALL SDL_AudioDriverName (char *namebuf, int maxlen)
DECLSPEC int SDLCALL SDL_OpenAudio (SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus (void)
DECLSPEC void SDLCALL SDL_PauseAudio (int pause_on)
DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW (SDL_RWops *src, int freesrc, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len)
DECLSPEC void SDLCALL SDL_FreeWAV (Uint8 *audio_buf)
DECLSPEC int SDLCALL SDL_BuildAudioCVT (SDL_AudioCVT *cvt, Uint16 src_format, Uint8 src_channels, int src_rate, Uint16 dst_format, Uint8 dst_channels, int dst_rate)
DECLSPEC int SDLCALL SDL_ConvertAudio (SDL_AudioCVT *cvt)
DECLSPEC void SDLCALL SDL_MixAudio (Uint8 *dst, const Uint8 *src, Uint32 len, int volume)
DECLSPEC void SDLCALL SDL_LockAudio (void)
DECLSPEC void SDLCALL SDL_UnlockAudio (void)
DECLSPEC void SDLCALL SDL_CloseAudio (void)


Define Documentation

#define AUDIO_S16   AUDIO_S16LSB
 

Definition at line 74 of file SDL_audio.h.

#define AUDIO_S16LSB   0x8010
 

Definition at line 70 of file SDL_audio.h.

#define AUDIO_S16MSB   0x9010
 

Definition at line 72 of file SDL_audio.h.

#define AUDIO_S16SYS   AUDIO_S16MSB
 

Definition at line 82 of file SDL_audio.h.

#define AUDIO_S8   0x8008
 

Definition at line 68 of file SDL_audio.h.

#define AUDIO_U16   AUDIO_U16LSB
 

Definition at line 73 of file SDL_audio.h.

#define AUDIO_U16LSB   0x0010
 

Definition at line 69 of file SDL_audio.h.

#define AUDIO_U16MSB   0x1010
 

Definition at line 71 of file SDL_audio.h.

#define AUDIO_U16SYS   AUDIO_U16MSB
 

Definition at line 81 of file SDL_audio.h.

#define AUDIO_U8   0x0008
 

Definition at line 67 of file SDL_audio.h.

#define SDL_LoadWAV file,
spec,
audio_buf,
audio_len   )     SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len)
 

Definition at line 199 of file SDL_audio.h.

Referenced by WAVFile::WAVFile().

#define SDL_MIX_MAXVOLUME   128
 

Definition at line 235 of file SDL_audio.h.

Referenced by WAVFile::setVolume().


Typedef Documentation

typedef struct SDL_AudioCVT SDL_AudioCVT
 


Enumeration Type Documentation

enum SDL_audiostatus
 

Enumeration values:
SDL_AUDIO_STOPPED 
SDL_AUDIO_PLAYING 
SDL_AUDIO_PAUSED 

Definition at line 163 of file SDL_audio.h.


Function Documentation

DECLSPEC char* SDLCALL SDL_AudioDriverName char *  namebuf,
int  maxlen
 

Referenced by Startup::Startup().

DECLSPEC int SDLCALL SDL_AudioInit const char *  driver_name  ) 
 

DECLSPEC void SDLCALL SDL_AudioQuit void   ) 
 

DECLSPEC int SDLCALL SDL_BuildAudioCVT SDL_AudioCVT cvt,
Uint16  src_format,
Uint8  src_channels,
int  src_rate,
Uint16  dst_format,
Uint8  dst_channels,
int  dst_rate
 

DECLSPEC void SDLCALL SDL_CloseAudio void   ) 
 

Referenced by WAVFile::stop().

DECLSPEC int SDLCALL SDL_ConvertAudio SDL_AudioCVT cvt  ) 
 

DECLSPEC void SDLCALL SDL_FreeWAV Uint8 *  audio_buf  ) 
 

Referenced by WAVFile::~WAVFile().

DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus void   ) 
 

DECLSPEC SDL_AudioSpec* SDLCALL SDL_LoadWAV_RW SDL_RWops *  src,
int  freesrc,
SDL_AudioSpec spec,
Uint8 **  audio_buf,
Uint32 *  audio_len
 

DECLSPEC void SDLCALL SDL_LockAudio void   ) 
 

Referenced by WAVFile::lock().

DECLSPEC void SDLCALL SDL_MixAudio Uint8 *  dst,
const Uint8 *  src,
Uint32  len,
int  volume
 

Referenced by WAVFile::fill().

DECLSPEC int SDLCALL SDL_OpenAudio SDL_AudioSpec desired,
SDL_AudioSpec obtained
 

Referenced by WAVFile::open().

DECLSPEC void SDLCALL SDL_PauseAudio int  pause_on  ) 
 

Referenced by WAVFile::pause(), and WAVFile::resume().

DECLSPEC void SDLCALL SDL_UnlockAudio void   ) 
 

Referenced by WAVFile::unlock().


Generated on Fri Oct 3 18:41:20 2003 for taptedDevTools by doxygen 1.3.4