31#ifndef ASYNC_AUDIO_CONTAINER_PCM_INCLUDED
32#define ASYNC_AUDIO_CONTAINER_PCM_INCLUDED
130 static constexpr const char *
OBJNAME =
"vnd.svxlink.pcm";
148 return "audio/vnd.svxlink.pcm";
179 size_t m_block_size = INTERNAL_SAMPLE_RATE / 10;
180 std::vector<int16_t> m_block;
Base class for audio container handlers.
static constexpr const char * OBJNAME
The name of this class when used by the object factory.
virtual const char * filenameExtension(void) const
Get the standard filename extension for the audio container.
virtual ~AudioContainerPcm(void)
Destructor.
virtual void flushSamples(void)
Tell the sink to flush the previously written samples.
virtual int writeSamples(const float *samples, int count)
Write samples into this audio sink.
AudioContainerPcm(void)
Default constructor.
virtual const char * mediaType(void) const
Retrieve the media type for the audio container.
Namespace for the asynchronous programming classes.