Async 1.8.0
|
#include <AsyncAudioContainerPcm.h>
Public Member Functions | |
AudioContainerPcm (void) | |
Default constructor. | |
virtual | ~AudioContainerPcm (void) |
Destructor. | |
virtual const char * | mediaType (void) const |
Retrieve the media type for the audio container. | |
virtual const char * | filenameExtension (void) const |
Get the standard filename extension for the audio container. | |
virtual int | writeSamples (const float *samples, int count) |
Write samples into this audio sink. | |
virtual void | flushSamples (void) |
Tell the sink to flush the previously written samples. | |
![]() | |
AudioContainer (void) | |
Default constructor. | |
AudioContainer (const AudioContainer &)=delete | |
Disable copy constructor. | |
AudioContainer & | operator= (const AudioContainer &)=delete |
Disable assignment operator. | |
virtual | ~AudioContainer (void) |
Destructor. | |
virtual void | setRealtime (void) |
Indicate to the container that realtime operation is desired. | |
virtual void | endStream (void) |
Indicate to the container that the stream has ended. | |
virtual size_t | headerSize (void) const |
Get the size of the header for this container. | |
virtual const char * | header (void) |
Get the header data. | |
![]() | |
AudioSink (void) | |
Default constuctor. | |
virtual | ~AudioSink (void) |
Destructor. | |
bool | registerSource (AudioSource *source) |
Register an audio source to provide samples to this sink. | |
void | unregisterSource (void) |
Unregister the previously registered audio source. | |
bool | isRegistered (void) const |
Check if an audio source has been registered. | |
AudioSource * | source (void) const |
Get the registered audio source. | |
Static Public Attributes | |
static constexpr const char * | OBJNAME = "vnd.svxlink.pcm" |
The name of this class when used by the object factory. | |
Additional Inherited Members | |
![]() | |
sigc::signal< void, const char *, size_t > | writeBlock |
A signal that is emitted when a block is ready to be written. | |
![]() | |
void | sourceResumeOutput (void) |
Tell the source that we are ready to accept more samples. | |
void | sourceAllSamplesFlushed (void) |
Tell the source that all samples have been flushed. | |
bool | setHandler (AudioSink *handler) |
Setup another sink to handle the incoming audio. | |
void | clearHandler (void) |
Clear a handler that was previously setup with setHandler. | |
AudioSink * | handler (void) const |
Definition at line 126 of file AsyncAudioContainerPcm.h.
Async::AudioContainerPcm::AudioContainerPcm | ( | void | ) |
Default constructor.
|
virtual |
Destructor.
|
inlinevirtual |
Get the standard filename extension for the audio container.
Implements Async::AudioContainer.
Definition at line 155 of file AsyncAudioContainerPcm.h.
|
virtual |
Tell the sink to flush the previously written samples.
This function is used to tell the sink to flush previously written samples. When done flushing, the sink should call the sourceAllSamplesFlushed function.
Reimplemented from Async::AudioSink.
|
inlinevirtual |
Retrieve the media type for the audio container.
Implements Async::AudioContainer.
Definition at line 146 of file AsyncAudioContainerPcm.h.
|
virtual |
Write samples into this audio sink.
samples | The buffer containing the samples |
count | The number of samples in the buffer |
This function is used to write audio into this audio sink. If it returns 0, no more samples should be written until the resumeOutput function in the source have been called.
Reimplemented from Async::AudioSink.
|
staticconstexpr |
The name of this class when used by the object factory.
Definition at line 130 of file AsyncAudioContainerPcm.h.