|
Audaspace
1.3.0
A high level audio library.
|
This device plays back through JACK. More...
#include <JackDevice.h>

Public Member Functions | |
| JackDevice (std::string name, DeviceSpecs specs, int buffersize=AUD_DEFAULT_BUFFER_SIZE) | |
| Creates a JACK client for audio output. More... | |
| virtual | ~JackDevice () |
| Closes the JACK client. | |
| virtual ISynchronizer * | getSynchronizer () |
| Retrieves the synchronizer for this device, which enables accurate synchronization between audio playback and video playback for example. More... | |
| void | startPlayback () |
| Starts jack transport playback. | |
| void | stopPlayback () |
| Stops jack transport playback. | |
| void | seekPlayback (float time) |
| Seeks jack transport playback. More... | |
| void | setSyncCallback (ISynchronizer::syncFunction sync, void *data) |
| Sets the sync callback for jack transport playback. More... | |
| float | getPlaybackPosition () |
| Retrieves the jack transport playback time. More... | |
| bool | doesPlayback () |
| Returns whether jack transport plays back. More... | |
Public Member Functions inherited from SoftwareDevice | |
| void | setQuality (bool quality) |
| Sets the resampling quality. More... | |
| virtual DeviceSpecs | getSpecs () const |
| Returns the specification of the device. | |
| virtual std::shared_ptr< IHandle > | play (std::shared_ptr< IReader > reader, bool keep=false) |
| Plays a sound source. More... | |
| virtual std::shared_ptr< IHandle > | play (std::shared_ptr< ISound > sound, bool keep=false) |
| Plays a sound source. More... | |
| virtual void | stopAll () |
| Stops all playing sounds. | |
| virtual void | lock () |
| Locks the device. More... | |
| virtual void | unlock () |
| Unlocks the previously locked device. | |
| virtual float | getVolume () const |
| Retrieves the overall device volume. More... | |
| virtual void | setVolume (float volume) |
| Sets the overall device volume. More... | |
| virtual Vector3 | getListenerLocation () const |
| Retrieves the listener location. More... | |
| virtual void | setListenerLocation (const Vector3 &location) |
| Sets the listener location. More... | |
| virtual Vector3 | getListenerVelocity () const |
| Retrieves the listener velocity. More... | |
| virtual void | setListenerVelocity (const Vector3 &velocity) |
| Sets the listener velocity. More... | |
| virtual Quaternion | getListenerOrientation () const |
| Retrieves the listener orientation. More... | |
| virtual void | setListenerOrientation (const Quaternion &orientation) |
| Sets the listener orientation. More... | |
| virtual float | getSpeedOfSound () const |
| Retrieves the speed of sound. More... | |
| virtual void | setSpeedOfSound (float speed) |
| Sets the speed of sound. More... | |
| virtual float | getDopplerFactor () const |
| Retrieves the doppler factor. More... | |
| virtual void | setDopplerFactor (float factor) |
| Sets the doppler factor. More... | |
| virtual DistanceModel | getDistanceModel () const |
| Retrieves the distance model. More... | |
| virtual void | setDistanceModel (DistanceModel model) |
| Sets the distance model. More... | |
Public Member Functions inherited from IDevice | |
| virtual | ~IDevice () |
| Destroys the device. | |
Static Public Member Functions | |
| static void | registerPlugin () |
| Registers this plugin. | |
Static Public Member Functions inherited from SoftwareDevice | |
| static void | setPanning (IHandle *handle, float pan) |
| Sets the panning of a specific handle. More... | |
Protected Member Functions | |
| virtual void | playing (bool playing) |
| This function tells the device, to start or pause playback. More... | |
Protected Member Functions inherited from SoftwareDevice | |
| void | create () |
| Initializes member variables. | |
| void | destroy () |
| Uninitializes member variables. | |
| void | mix (data_t *buffer, int length) |
| Mixes the next samples into the buffer. More... | |
| void | setSpecs (Specs specs) |
| Sets the audio output specification of the device. More... | |
| SoftwareDevice () | |
| Empty default constructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SoftwareDevice | |
| DeviceSpecs | m_specs |
| The specification of the device. | |
| std::shared_ptr< Mixer > | m_mixer |
| The mixer. | |
| bool | m_quality |
| Whether to do high or low quality resampling. | |
This device plays back through JACK.
| JackDevice::JackDevice | ( | std::string | name, |
| 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. |
| Exception | Thrown if the audio device cannot be opened. |
| bool JackDevice::doesPlayback | ( | ) |
Returns whether jack transport plays back.
| float JackDevice::getPlaybackPosition | ( | ) |
Retrieves the jack transport playback time.
|
virtual |
Retrieves the synchronizer for this device, which enables accurate synchronization between audio playback and video playback for example.
Reimplemented from SoftwareDevice.
|
protectedvirtual |
This function tells the device, to start or pause playback.
| playing | True if device should playback. |
Implements SoftwareDevice.
| void JackDevice::seekPlayback | ( | float | time | ) |
Seeks jack transport playback.
| time | The time to seek to. |
| void JackDevice::setSyncCallback | ( | ISynchronizer::syncFunction | sync, |
| void * | data | ||
| ) |
Sets the sync callback for jack transport playback.
| sync | The callback function. |
| data | The data for the function. |
1.8.14