31#ifndef ASYNC_AUDIO_CONTAINER_INCLUDED
32#define ASYNC_AUDIO_CONTAINER_INCLUDED
41#include <sigc++/sigc++.h>
209 virtual const char*
header(
void) {
return nullptr; }
This file contains the base class for an audio sink.
Some templates used to support the creation of an object factory.
virtual void setRealtime(void)
Indicate to the container that realtime operation is desired.
virtual size_t headerSize(void) const
Get the size of the header for this container.
AudioContainer & operator=(const AudioContainer &)=delete
Disable assignment operator.
sigc::signal< void, const char *, size_t > writeBlock
A signal that is emitted when a block is ready to be written.
AudioContainer(void)
Default constructor.
virtual const char * mediaType(void) const =0
Retrieve the media type for the audio container.
virtual ~AudioContainer(void)
Destructor.
virtual const char * header(void)
Get the header data.
virtual const char * filenameExtension(void) const =0
Get the standard filename extension for the audio container.
AudioContainer(const AudioContainer &)=delete
Disable copy constructor.
virtual void endStream(void)
Indicate to the container that the stream has ended.
The base class for an audio sink.
virtual void flushSamples(void)
Tell the sink to flush the previously written samples.
Namespace for the asynchronous programming classes.
Async::Factory< AudioContainer > AudioContainerFactory
Convenience typedef for easier access to the factory members.
AudioContainer * createAudioContainer(const std::string &name)
Create a named AudioContainer-derived object.
Convenience struct to make specific factory instantiation easier.
AudioContainerSpecificFactory(void)