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

#include <WavEngine.h>

Inheritance diagram for WavEngine:
AudioOut Engine

Public Member Functions

 WavEngine ()
 ~WavEngine ()
bool openAudio ()
bool Start ()
void Stop ()
void setAudioEn (bool)
bool getAudioEn () const
void push (Stereo< float * > smps, size_t len)
void newFile (WavFile *_file)
void destroyFile ()
Public Member Functions inherited from AudioOut
 AudioOut ()
virtual ~AudioOut ()
void setSamplerate (int _samplerate)
int getSampleRate ()
void setBufferSize (int _bufferSize)
void bufferingSize (int nBuffering)
int bufferingSize ()
Public Member Functions inherited from Engine
 Engine ()
virtual ~Engine ()

Protected Member Functions

voidAudioThread ()
Protected Member Functions inherited from AudioOut
const Stereo< float * > getNext ()

Static Protected Member Functions

static void_AudioThread (void *arg)

Private Attributes

WavFilefile
ZynSema work
SafeQueue< float > buffer
std::thread * pThread

Additional Inherited Members

Public Attributes inherited from Engine
std::string name
Protected Attributes inherited from AudioOut
int samplerate
int bufferSize

Constructor & Destructor Documentation

◆ WavEngine()

WavEngine::WavEngine ( )

◆ ~WavEngine()

WavEngine::~WavEngine ( )

Member Function Documentation

◆ _AudioThread()

void * WavEngine::_AudioThread ( void * arg)
staticprotected

◆ AudioThread()

void * WavEngine::AudioThread ( )
protected

◆ destroyFile()

void WavEngine::destroyFile ( )

◆ getAudioEn()

bool WavEngine::getAudioEn ( ) const
inlinevirtual

Implements AudioOut.

◆ newFile()

void WavEngine::newFile ( WavFile * _file)

◆ openAudio()

bool WavEngine::openAudio ( )

◆ push()

void WavEngine::push ( Stereo< float * > smps,
size_t len )

◆ setAudioEn()

void WavEngine::setAudioEn ( bool )
inlinevirtual

Implements AudioOut.

◆ Start()

bool WavEngine::Start ( )
virtual

Start the Driver with all capabilities

Returns
true on success

Implements Engine.

◆ Stop()

void WavEngine::Stop ( )
virtual

Completely stop the Driver

Implements Engine.

Member Data Documentation

◆ buffer

SafeQueue<float> WavEngine::buffer
private

◆ file

WavFile* WavEngine::file
private

◆ pThread

std::thread* WavEngine::pThread
private

◆ work

ZynSema WavEngine::work
private

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