14#include <vtc/ltc_audio.h>
Object to hold some number of audio samples.
Definition audio.h:35
Dynamic array container wrapping std::vector.
Definition list.h:40
Decodes LTC (Linear Timecode) audio samples into timecode values.
Definition ltcdecoder.h:37
void setThresholds(int8_t lower, int8_t upper)
Sets the hysteresis thresholds for edge detection.
DecodedList decode(const int8_t *samples, size_t count)
Feeds raw int8_t audio samples to the decoder.
DecodedList decode(const Audio &audio)
Feeds an Audio object to the decoder.
void reset()
Clears the decoder state.
int sampleRate() const
Returns the configured sample rate.
Definition ltcdecoder.h:69
void setFuzz(int fuzz)
Sets the timing tolerance in samples.
~LtcDecoder()=default
Destructor.
LtcDecoder(int sampleRate)
Constructs an LTC decoder.
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
Result of decoding a single LTC frame.
Definition ltcdecoder.h:42
int64_t sampleLength
Number of samples in this frame.
Definition ltcdecoder.h:45
Timecode timecode
The decoded timecode value.
Definition ltcdecoder.h:43
int64_t sampleStart
Sample position where this frame began.
Definition ltcdecoder.h:44