Encodes timecode values into LTC (Linear Timecode) audio samples. More...
#include <ltcencoder.h>
Public Member Functions | |
| LtcEncoder (int sampleRate, float level=0.5f) | |
| Constructs an LTC encoder. | |
| ~LtcEncoder ()=default | |
| Destructor. | |
| LtcEncoder (const LtcEncoder &)=delete | |
| LtcEncoder & | operator= (const LtcEncoder &)=delete |
| LtcEncoder (LtcEncoder &&)=default | |
| LtcEncoder & | operator= (LtcEncoder &&)=default |
| int | sampleRate () const |
| Returns the configured sample rate. | |
| float | level () const |
| Returns the output amplitude level. | |
| void | setLevel (float level) |
| Sets the output amplitude. | |
| Audio | encode (const Timecode &tc) |
| Encodes one timecode frame into mono int8_t audio. | |
| size_t | frameSizeApprox (const VtcFormat *format) const |
| Returns the approximate number of samples per LTC frame. | |
Encodes timecode values into LTC (Linear Timecode) audio samples.
Wraps libvtc's VtcLTCEncoder to produce biphase-mark-encoded audio representing SMPTE timecode. The output is mono int8_t audio suitable for mixing into an audio stream or output on a dedicated channel.
Not copyable (owns encoder state). Movable.
Encodes one timecode frame into mono int8_t audio.
| tc | The timecode value to encode. |
Returns the approximate number of samples per LTC frame.
Useful for buffer pre-allocation. Actual encoded size may vary slightly.
| format | The timecode format to estimate for. |
|
inline |
|
inline |
Returns the configured sample rate.