13#include <vtc/ltc_audio.h>
62 float level()
const {
return _encoder.level; }
Object to hold some number of audio samples.
Definition audio.h:35
Dynamic array container wrapping std::vector.
Definition list.h:40
Encodes timecode values into LTC (Linear Timecode) audio samples.
Definition ltcencoder.h:35
Audio encode(const Timecode &tc)
Encodes one timecode frame into mono int8_t audio.
~LtcEncoder()=default
Destructor.
int sampleRate() const
Returns the configured sample rate.
Definition ltcencoder.h:56
size_t frameSizeApprox(const VtcFormat *format) const
Returns the approximate number of samples per LTC frame.
LtcEncoder(int sampleRate, float level=0.5f)
Constructs an LTC encoder.
float level() const
Returns the output amplitude level.
Definition ltcencoder.h:62
void setLevel(float level)
Sets the output amplitude.
Class for holding and manipulating timecode.
Definition timecode.h:45
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19