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

Public Member Functions | |
| JackDevice (const std::string &name, DeviceSpecs specs, int buffersize=AUD_DEFAULT_BUFFER_SIZE) | |
| Creates a JACK client for audio output. | |
| virtual | ~JackDevice () |
| Closes the JACK client. | |
| void | playSynchronizer () |
| Starts jack transport playback. | |
| void | stopSynchronizer () |
| Stops jack transport playback. | |
| void | seekSynchronizer (double time) |
| Seeks jack transport playback. | |
| void | setSyncCallback (syncFunction sync, void *data) |
| Sets the sync callback for jack transport playback. | |
| double | getSynchronizerPosition () |
| Retrieves the jack transport playback time. | |
| int | isSynchronizerPlaying () |
| Returns whether jack transport plays back. | |
| Public Member Functions inherited from SoftwareDevice | |
| void | setQuality (ResampleQuality quality) |
| Sets the resampling quality. | |
| 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. | |
| virtual std::shared_ptr< IHandle > | play (std::shared_ptr< ISound > sound, bool keep=false) |
| Plays a sound source. | |
| virtual void | stopAll () |
| Stops all playing sounds. | |
| virtual void | lock () |
| Locks the device. | |
| virtual void | unlock () |
| Unlocks the previously locked device. | |
| virtual float | getVolume () const |
| Retrieves the overall device volume. | |
| virtual void | setVolume (float volume) |
| Sets the overall device volume. | |
| virtual Vector3 | getListenerLocation () const |
| Retrieves the listener location. | |
| virtual void | setListenerLocation (const Vector3 &location) |
| Sets the listener location. | |
| virtual Vector3 | getListenerVelocity () const |
| Retrieves the listener velocity. | |
| virtual void | setListenerVelocity (const Vector3 &velocity) |
| Sets the listener velocity. | |
| virtual Quaternion | getListenerOrientation () const |
| Retrieves the listener orientation. | |
| virtual void | setListenerOrientation (const Quaternion &orientation) |
| Sets the listener orientation. | |
| virtual float | getSpeedOfSound () const |
| Retrieves the speed of sound. | |
| virtual void | setSpeedOfSound (float speed) |
| Sets the speed of sound. | |
| virtual float | getDopplerFactor () const |
| Retrieves the doppler factor. | |
| virtual void | setDopplerFactor (float factor) |
| Sets the doppler factor. | |
| virtual DistanceModel | getDistanceModel () const |
| Retrieves the distance model. | |
| virtual void | setDistanceModel (DistanceModel model) |
| Sets the distance model. | |
| 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. | |
Protected Member Functions | |
| virtual void | playing (bool playing) |
| This function tells the device, to start or pause playback. | |
| Protected Member Functions inherited from MixingThreadDevice | |
| void | startMixingThread (size_t buffersize) |
| Starts the streaming thread. | |
| void | notifyMixingThread () |
| Notify the mixing thread. | |
| RingBuffer & | getRingBuffer () |
| Get ring buffer for reading. | |
| bool | isMixingThreadRunning () |
| Returns whether the thread is running or not. | |
| MixingThreadDevice () | |
| Empty default constructor. | |
| void | stopMixingThread () |
| Stops all playback and notifies the mixing thread to stop. | |
| 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. | |
| void | setSpecs (Specs specs) |
| Sets the audio output specification of the device. | |
| void | setSpecs (DeviceSpecs specs) |
| Sets the audio output specification of the device. | |
| SoftwareDevice () | |
| Empty default constructor. | |
Additional Inherited Members | |
| Public Types inherited from IDevice | |
| typedef void(* | syncFunction) (void *, int, float) |
| The syncFunction is called when a synchronization event happens. | |
| Protected Attributes inherited from SoftwareDevice | |
| DeviceSpecs | m_specs |
| The specification of the device. | |
| std::shared_ptr< Mixer > | m_mixer |
| The mixer. | |
| ResampleQuality | m_quality |
| Resampling quality. | |
This device plays back through JACK.
| JackDevice::JackDevice | ( | const 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. |
|
virtual |
Retrieves the jack transport playback time.
Reimplemented from SoftwareDevice.
|
virtual |
Returns whether jack transport plays back.
Reimplemented from SoftwareDevice.
|
protectedvirtual |
This function tells the device, to start or pause playback.
| playing | True if device should playback. |
Reimplemented from MixingThreadDevice.
|
virtual |
Starts jack transport playback.
Reimplemented from SoftwareDevice.
|
virtual |
Seeks jack transport playback.
| time | The time to seek to. |
Reimplemented from SoftwareDevice.
|
virtual |
Sets the sync callback for jack transport playback.
| sync | The callback function. |
| data | The data for the function. |
Reimplemented from SoftwareDevice.
|
virtual |
Stops jack transport playback.
Reimplemented from SoftwareDevice.