Blender  V2.59
Public Member Functions | Protected Member Functions
AUD_JackDevice Class Reference

#include <AUD_JackDevice.h>

Inheritance diagram for AUD_JackDevice:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

This device plays back through Jack.

Definition at line 49 of file AUD_JackDevice.h.


Constructor & Destructor Documentation

AUD_JackDevice::AUD_JackDevice ( std::string  name,
AUD_DeviceSpecs  specs,
int  buffersize = AUD_DEFAULT_BUFFER_SIZE 
)

Creates a Jack client for audio output.

Parameters:
nameThe client name.
specsThe wanted audio specification, where only the channel count is important.
buffersizeThe size of the internal buffer.
Exceptions:
AUD_ExceptionThrown 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.


Member Function Documentation

bool AUD_JackDevice::doesPlayback ( )

Definition at line 344 of file AUD_JackDevice.cpp.

References NULL, and state.

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.

Parameters:
playingTrue 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().


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