|
Blender
V2.59
|
#include <AUD_JackDevice.h>

Public Member Functions | |
| AUD_JackDevice (std::string name, AUD_DeviceSpecs specs, int buffersize=AUD_DEFAULT_BUFFER_SIZE) | |
| virtual | ~AUD_JackDevice () |
| void | startPlayback () |
| void | stopPlayback () |
| void | seekPlayback (float time) |
| void | setSyncCallback (AUD_syncFunction sync, void *data) |
| float | getPlaybackPosition () |
| bool | doesPlayback () |
Protected Member Functions | |
| virtual void | playing (bool playing) |
This device plays back through Jack.
Definition at line 49 of file AUD_JackDevice.h.
| AUD_JackDevice::AUD_JackDevice | ( | std::string | name, |
| AUD_DeviceSpecs | specs, | ||
| int | buffersize = AUD_DEFAULT_BUFFER_SIZE |
||
| ) |
Creates a Jack client for audio output.
| name | The client name. |
| specs | The wanted audio specification, where only the channel count is important. |
| buffersize | The size of the internal buffer. |
| AUD_Exception | Thrown if the audio device cannot be opened. |
Definition at line 187 of file AUD_JackDevice.cpp.
References AUD_CHANNELS_INVALID, AUD_CHANNELS_STEREO, AUD_ERROR_JACK, AUD_FORMAT_FLOAT32, AUD_THROW, AUD_DeviceSpecs::channels, AUD_SoftwareDevice::create(), AUD_SoftwareDevice::destroy(), AUD_DeviceSpecs::format, i, AUD_SoftwareDevice::m_specs, NULL, AUD_DeviceSpecs::rate, and AUD_Buffer::resize().
| AUD_JackDevice::~AUD_JackDevice | ( | ) | [virtual] |
Closes the Jack client.
Definition at line 286 of file AUD_JackDevice.cpp.
References AUD_DeviceSpecs::channels, AUD_SoftwareDevice::destroy(), AUD_SoftwareDevice::m_specs, and NULL.
| bool AUD_JackDevice::doesPlayback | ( | ) |
Definition at line 344 of file AUD_JackDevice.cpp.
Referenced by AUD_doesPlayback().
| float AUD_JackDevice::getPlaybackPosition | ( | ) |
Definition at line 337 of file AUD_JackDevice.cpp.
References AUD_SoftwareDevice::m_specs, and AUD_DeviceSpecs::rate.
Referenced by AUD_getSequencerPosition().
| void AUD_JackDevice::playing | ( | bool | playing | ) | [protected, virtual] |
This function tells the device, to start or pause playback.
| playing | True if device should playback. |
Implements AUD_SoftwareDevice.
Definition at line 308 of file AUD_JackDevice.cpp.
| void AUD_JackDevice::seekPlayback | ( | float | time | ) |
Definition at line 325 of file AUD_JackDevice.cpp.
References AUD_SoftwareDevice::m_specs, and AUD_DeviceSpecs::rate.
Referenced by AUD_seekSequencer().
| void AUD_JackDevice::setSyncCallback | ( | AUD_syncFunction | sync, |
| void * | data | ||
| ) |
Definition at line 331 of file AUD_JackDevice.cpp.
| void AUD_JackDevice::startPlayback | ( | ) |
Definition at line 313 of file AUD_JackDevice.cpp.
Referenced by AUD_startPlayback().
| void AUD_JackDevice::stopPlayback | ( | ) |
Definition at line 319 of file AUD_JackDevice.cpp.
Referenced by AUD_stopPlayback().