VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
|
Backend without functionality. More...
#include <vae_device_dummy.hpp>
Public Member Functions | |
DeviceDummy (Backend &backend, const EngineConfig &config) | |
bool | openDevice (bool input=false) override |
Tries to open the default audio device whith desired in out channels. More... | |
bool | openDevice (DeviceInfo &device) override |
Opens a specific audio device. More... | |
bool | closeDevice () override |
Closes the currently open device. More... | |
template<typename T > | |
void | swapBufferInterleaved (const T *from, T *to, Size frames) |
Simulate the callback from the audio device. More... | |
![]() | |
Device (Backend &backend, const EngineConfig &config) | |
Only a Backend can construct a Device. More... | |
virtual | ~Device () |
void | setCallback (Callback callback) |
Size | push (const ScratchBuffer &buffer) |
Push samples to the audio device. More... | |
Size | canPush () const |
Return amount of audio frames which can be pushed in buffer ! this is an estimate when resampling ! More... | |
void | pop (ScratchBuffer &buffer) |
Get samples form audio device. More... | |
Size | canPop () const |
Size | getChannelsOut () const |
Size | getChannelsIn () const |
Size | getSampleRate () const |
Get the sample rate. More... | |
Size | getRealSampleRate () const |
Get the Real Sample Rate before resampling. More... | |
size_t | getStreamTime () const |
Size | getOverruns () const |
Size | getUnderruns () const |
Additional Inherited Members | |
![]() | |
using | Resampler = tklb::ResamplerTpl< Sample, ScratchBuffer > |
![]() | |
using | Callback = tklb::Delegate< void(Device *)> |
![]() | |
void | init (Size sampleRate, Uchar channelsIn, Uchar channelsOut, Size bufferSize) |
initializes buffers, queues and resamplers if needed Has to be called in openDevice once the samplerate and channel config is known More... | |
void | postInit () |
![]() | |
Backend & | mBackend |
const EngineConfig & | mConfig |
Size | mSampleRate = 0 |
Size | mRealSampleRate = 0 |
Size | mOverruns = 0 |
Size | mUnderruns = 0 |
Resampler | mResamplerToDevice |
ScratchBuffer | mResamplerBufferToDevice |
AudioThreadWorker | mWorker |
![]() | |
static constexpr int | _VAE_WORKER_SIZE = sizeof(AudioThreadWorker) |
Backend without functionality.
Definition at line 10 of file vae_device_dummy.hpp.
|
inline |
Definition at line 12 of file vae_device_dummy.hpp.
|
inlineoverridevirtual |
Closes the currently open device.
Otherwise does nothing.
Implements vae::core::Device.
Definition at line 28 of file vae_device_dummy.hpp.
|
inlineoverridevirtual |
Tries to open the default audio device whith desired in out channels.
Reimplemented from vae::core::Device.
Definition at line 16 of file vae_device_dummy.hpp.
|
inlineoverridevirtual |
Opens a specific audio device.
The device struct may be altered to match the actual hardware. (sampleRate, bufferSize and channel count)
Implements vae::core::Device.
Definition at line 22 of file vae_device_dummy.hpp.
|
inline |
Simulate the callback from the audio device.
T |
from | |
to | |
frames |
Definition at line 39 of file vae_device_dummy.hpp.