ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
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::Cpc * | mCpc =0 |
static volatile bool | mBufferCopied = false |
Manages all Audio related stuff.
References cpc, Audio::isInit, Audio::mBufferCopied, Audio::mCpc, Audio::mMaxSafeDist, Audio::mMinSafeDist, and Audio::mSpec.
~Audio | ( | ) |
References Audio::quit().
Referenced by Audio::init().
|
inline |
References Audio::mBufferCopied.
|
inline |
References Sound::buffer(), Sound::bufferEnd(), Sound::bufferPtr(), Audio::mCpc, Cpc::sound(), and Sound::stream().
int init | ( | ) |
References Audio::alignSamples(), Sound::bits(), Sound::buffer(), Sound::bufferSize(), Sound::enabled(), Sound::freqTable(), Sound::initAY(), IOUT, Audio::isInit, Audio::mCpc, Audio::mMaxSafeDist, Audio::mMinSafeDist, Audio::mSpec, Sound::playbackRate(), Audio::quit(), Sound::setBuffer(), Sound::setBufferEnd(), Sound::setBufferPtr(), Sound::setBufferSize(), Sound::setStream(), Cpc::sound(), Sound::stereo(), and Audio::update().
Referenced by clearKeyBuffer(), init(), and mainloop().
|
inline |
References Audio::mMaxSafeDist.
|
inline |
References Audio::mMinSafeDist.
void pause | ( | bool | value | ) |
References Sound::enabled(), IOUT, Audio::mCpc, and Cpc::sound().
Referenced by mainloop(), and Audio::waitCopied().
void quit | ( | ) |
References Sound::buffer(), Audio::isInit, Audio::mCpc, Audio::mSpec, and Cpc::sound().
Referenced by Audio::init(), and Audio::~Audio().
|
inline |
References Audio::mBufferCopied.
|
static |
References Sound::buffer(), Sound::bufferEnd(), Audio::mBufferCopied, Audio::mCpc, mmx_memcpy(), Sound::setStream(), Cpc::sound(), and Sound::stream().
Referenced by Audio::init(), and Audio::waitCopied().
|
inline |
References Audio::mBufferCopied, Audio::pause(), and Audio::update().
Referenced by mainloop().
|
private |
Referenced by Audio::Audio(), Audio::init(), and Audio::quit().
|
staticprivate |
Referenced by Audio::Audio(), Audio::copied(), Audio::setCopied(), Audio::update(), and Audio::waitCopied().
|
staticprivate |
Referenced by Audio::Audio(), Audio::dist(), Audio::init(), Audio::pause(), Audio::quit(), and Audio::update().
|
private |
Referenced by Audio::Audio(), Audio::init(), and Audio::maxdist().
|
private |
Referenced by Audio::Audio(), Audio::init(), and Audio::mindist().
|
private |
Referenced by Audio::Audio(), Audio::init(), and Audio::quit().