ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Audio Class Referencefinal

Manages all Audio related stuff. More...

#include <audio.h>

Public Member Functions

 Audio (cpcx::Cpc *cpc)
 
 ~Audio ()
 
int init ()
 
void quit ()
 
uint dist () const
 
uint mindist () const
 
uint maxdist () const
 
bool copied () const
 
void setCopied (bool val)
 
void waitCopied ()
 
void pause (bool value)
 

Static Public Member Functions

static void update (void *userdata, Uint8 *stream, int len)
 

Private Member Functions

uint alignSamples (uint given)
 

Private Attributes

SDL_AudioSpec * mSpec
 
bool isInit
 
uint mMinSafeDist
 
uint mMaxSafeDist
 

Static Private Attributes

static cpcx::CpcmCpc =0
 
static volatile bool mBufferCopied = false
 

Detailed Description

Manages all Audio related stuff.

Constructor & Destructor Documentation

Audio ( cpcx::Cpc cpc)
~Audio ( )

References Audio::quit().

Member Function Documentation

uint alignSamples ( uint  given)
private

Referenced by Audio::init().

bool copied ( ) const
inline

References Audio::mBufferCopied.

uint dist ( ) const
inline
int init ( )
uint maxdist ( ) const
inline

References Audio::mMaxSafeDist.

uint mindist ( ) const
inline

References Audio::mMinSafeDist.

void pause ( bool  value)
void quit ( )
void setCopied ( bool  val)
inline

References Audio::mBufferCopied.

void update ( void *  userdata,
Uint8 *  stream,
int  len 
)
static
void waitCopied ( )
inline

Member Data Documentation

bool isInit
private
volatile bool mBufferCopied = false
staticprivate
cpcx::Cpc * mCpc =0
staticprivate
uint mMaxSafeDist
private
uint mMinSafeDist
private
SDL_AudioSpec* mSpec
private
Todo:
not threadsafe

Referenced by Audio::Audio(), Audio::init(), and Audio::quit().


The documentation for this class was generated from the following files: