LMMS
Loading...
Searching...
No Matches
lmms::AudioSoundIo Class Reference

#include <AudioSoundIo.h>

Inheritance diagram for lmms::AudioSoundIo:
lmms::AudioDevice

Classes

class  setupWidget

Public Member Functions

 AudioSoundIo (bool &_success_ful, AudioEngine *audioEngine)
virtual ~AudioSoundIo ()
Public Member Functions inherited from lmms::AudioDevice
 AudioDevice (const ch_cnt_t _channels, AudioEngine *audioEngine)
virtual ~AudioDevice ()
void lock ()
void unlock ()
virtual void registerPort (AudioBusHandle *port)
virtual void unregisterPort (AudioBusHandle *port)
virtual void renamePort (AudioBusHandle *port)
bool supportsCapture () const
sample_rate_t sampleRate () const
void processNextBuffer ()

Static Public Member Functions

static QString name ()

Private Member Functions

virtual void startProcessing ()
virtual void stopProcessing ()
void onBackendDisconnect (int err)
void writeCallback (int frame_count_min, int frame_count_max)
void errorCallback (int err)
void underflowCallback ()

Static Private Member Functions

static void staticWriteCallback (SoundIoOutStream *outstream, int frame_count_min, int frame_count_max)
static void staticErrorCallback (SoundIoOutStream *outstream, int err)
static void staticUnderflowCallback (SoundIoOutStream *outstream)
static void staticOnBackendDisconnect (SoundIo *soundio, int err)

Private Attributes

SoundIo * m_soundio
SoundIoOutStream * m_outstream
SampleFramem_outBuf
int m_outBufSize
f_cnt_t m_outBufFramesTotal
f_cnt_t m_outBufFrameIndex
bool m_stopped
bool m_outstreamStarted
int m_disconnectErr

Additional Inherited Members

Protected Member Functions inherited from lmms::AudioDevice
virtual void writeBuffer (const SampleFrame *, const f_cnt_t)
f_cnt_t getNextBuffer (SampleFrame *_ab)
int convertToS16 (const SampleFrame *_ab, const f_cnt_t _frames, int_sample_t *_output_buffer, const bool _convert_endian=false)
void clearS16Buffer (int_sample_t *_outbuf, const f_cnt_t _frames)
ch_cnt_t channels () const
void setSampleRate (const sample_rate_t _new_sr)
void setChannels (const ch_cnt_t channels)
AudioEngineaudioEngine ()
Static Protected Member Functions inherited from lmms::AudioDevice
static void stopProcessingThread (QThread *thread)
Protected Attributes inherited from lmms::AudioDevice
bool m_supportsCapture

Constructor & Destructor Documentation

◆ AudioSoundIo()

lmms::AudioSoundIo::AudioSoundIo ( bool & _success_ful,
AudioEngine * audioEngine )

◆ ~AudioSoundIo()

lmms::AudioSoundIo::~AudioSoundIo ( )
virtual

Member Function Documentation

◆ errorCallback()

void lmms::AudioSoundIo::errorCallback ( int err)
private

◆ name()

QString lmms::AudioSoundIo::name ( )
inlinestatic

◆ onBackendDisconnect()

void lmms::AudioSoundIo::onBackendDisconnect ( int err)
private

◆ startProcessing()

void lmms::AudioSoundIo::startProcessing ( )
privatevirtual

Reimplemented from lmms::AudioDevice.

◆ staticErrorCallback()

void lmms::AudioSoundIo::staticErrorCallback ( SoundIoOutStream * outstream,
int err )
inlinestaticprivate

◆ staticOnBackendDisconnect()

void lmms::AudioSoundIo::staticOnBackendDisconnect ( SoundIo * soundio,
int err )
inlinestaticprivate

◆ staticUnderflowCallback()

void lmms::AudioSoundIo::staticUnderflowCallback ( SoundIoOutStream * outstream)
inlinestaticprivate

◆ staticWriteCallback()

void lmms::AudioSoundIo::staticWriteCallback ( SoundIoOutStream * outstream,
int frame_count_min,
int frame_count_max )
inlinestaticprivate

◆ stopProcessing()

void lmms::AudioSoundIo::stopProcessing ( )
privatevirtual

Reimplemented from lmms::AudioDevice.

◆ underflowCallback()

void lmms::AudioSoundIo::underflowCallback ( )
private

◆ writeCallback()

void lmms::AudioSoundIo::writeCallback ( int frame_count_min,
int frame_count_max )
private

Member Data Documentation

◆ m_disconnectErr

int lmms::AudioSoundIo::m_disconnectErr
private

◆ m_outBuf

SampleFrame* lmms::AudioSoundIo::m_outBuf
private

◆ m_outBufFrameIndex

f_cnt_t lmms::AudioSoundIo::m_outBufFrameIndex
private

◆ m_outBufFramesTotal

f_cnt_t lmms::AudioSoundIo::m_outBufFramesTotal
private

◆ m_outBufSize

int lmms::AudioSoundIo::m_outBufSize
private

◆ m_outstream

SoundIoOutStream* lmms::AudioSoundIo::m_outstream
private

◆ m_outstreamStarted

bool lmms::AudioSoundIo::m_outstreamStarted
private

◆ m_soundio

SoundIo* lmms::AudioSoundIo::m_soundio
private

◆ m_stopped

bool lmms::AudioSoundIo::m_stopped
private

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