LMMS
Loading...
Searching...
No Matches
OutMgr Class Reference

#include <OutMgr.h>

Public Member Functions

 ~OutMgr ()
const Stereo< float * > tick (unsigned int frameSize)
void requestSamples (unsigned int n=1)
AudioOutgetOut (std::string name)
std::string getDriver () const
bool setSink (std::string name)
std::string getSink () const

Static Public Member Functions

static OutMgrgetInstance ()

Public Attributes

class WavEnginewave

Private Member Functions

 OutMgr ()
void addSmps (float *l, float *r)
unsigned int storedSmps () const
void removeStaleSmps ()

Private Attributes

AudioOutcurrentOut
Stereo< float * > priBuf
Stereo< float * > priBuffCurrent
float * outl
float * outr
class Mastermaster
int stales

Friends

class EngineMgr

Constructor & Destructor Documentation

◆ ~OutMgr()

OutMgr::~OutMgr ( )

◆ OutMgr()

OutMgr::OutMgr ( )
private

Member Function Documentation

◆ addSmps()

void OutMgr::addSmps ( float * l,
float * r )
private

◆ getDriver()

string OutMgr::getDriver ( ) const

Gets the name of the first running driver Deprecated

Returns
if no running output, "" is returned

◆ getInstance()

OutMgr & OutMgr::getInstance ( )
static

◆ getOut()

AudioOut * OutMgr::getOut ( std::string name)

Gets requested driver

Parameters
namecase unsensitive name of driver
Returns
pointer to Audio Out or NULL

◆ getSink()

string OutMgr::getSink ( ) const

◆ removeStaleSmps()

void OutMgr::removeStaleSmps ( )
private

◆ requestSamples()

void OutMgr::requestSamples ( unsigned int n = 1)

Request a new set of samples

Parameters
nnumber of requested samples (defaults to 1)
Returns
-1 for locking issues 0 for valid request

◆ setSink()

bool OutMgr::setSink ( std::string name)

◆ storedSmps()

unsigned int OutMgr::storedSmps ( ) const
inlineprivate

◆ tick()

const Stereo< float * > OutMgr::tick ( unsigned int frameSize)

Execute a tick

◆ EngineMgr

friend class EngineMgr
friend

Member Data Documentation

◆ currentOut

AudioOut* OutMgr::currentOut
private

The current output driver

◆ master

class Master& OutMgr::master
private

◆ outl

float* OutMgr::outl
private

◆ outr

float* OutMgr::outr
private

◆ priBuf

Stereo<float *> OutMgr::priBuf
private

Buffer

◆ priBuffCurrent

Stereo<float *> OutMgr::priBuffCurrent
private

◆ stales

int OutMgr::stales
private

◆ wave

class WavEngine* OutMgr::wave

The Wave Recorder


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