26#ifndef OLAF_STREAM_PROCESSOR_H
27#define OLAF_STREAM_PROCESSOR_H
Olaf configuration pramameters.
Provides an algorithm to match extracted fingerprints with the indexed fingerprints in the database.
void(* Olaf_FP_Matcher_Result_Callback)(int matchCount, float queryStart, float queryStop, const char *path, uint32_t matchIdentifier, float referenceStart, float referenceStop)
Callback function template to respond to a result.
Definition olaf_fp_matcher.h:42
Helps to run query, store, delete or print commands. These share a lot of functionality but differ in...
void olaf_stream_processor_destroy(Olaf_Stream_Processor *olaf_stream_processor)
Free up memory and release resources.
Definition olaf_stream_processor.c:60
void olaf_stream_processor_set_result_header(Olaf_Stream_Processor *processor, const char *result_header)
Set the result header for the stream processor.
Definition olaf_stream_processor.c:73
Olaf_Stream_Processor * olaf_stream_processor_new(Olaf_Runner *runner, const char *raw_path, const char *orig_path)
Initialize a new stream processor.
Definition olaf_stream_processor.c:38
void olaf_stream_processor_set_result_callback(Olaf_Stream_Processor *olaf_stream_processor, Olaf_FP_Matcher_Result_Callback callback)
Set the result callback function.
Definition olaf_stream_processor.c:69
void olaf_stream_processor_process(Olaf_Stream_Processor *olaf_stream_processor)
Process a file from the first to last audio sample.
Definition olaf_stream_processor.c:77
Helps to run query, store, delete or print commands. These share a lot of functionality but differ in...
Definition olaf_runner.h:55
An opaque struct with state information related to the stream processor.
Definition olaf_stream_processor.c:20
Olaf_Runner * runner
Definition olaf_stream_processor.c:21
const char * orig_path
Definition olaf_stream_processor.c:28
const char * result_header
Definition olaf_stream_processor.c:30