|
Olaf
Overly Lightweight Acoustic Fingerprinting
|
Makes it more easy to process an audio stream. More...
Go to the source code of this file.
Typedefs | |
| typedef struct Olaf_Stream_Processor | Olaf_Stream_Processor |
| Typedef for struct Olaf_Stream_Processor. | |
Functions | |
| Olaf_Stream_Processor * | olaf_stream_processor_new (Olaf_Runner *runner, const char *raw_path, const char *orig_path) |
| Initialize a new stream processor. | |
| void | olaf_stream_processor_process (Olaf_Stream_Processor *olaf_stream_processor) |
| Process a file from the first to last audio sample. | |
| void | olaf_stream_processor_destroy (Olaf_Stream_Processor *olaf_stream_processor) |
| Free up memory and release resources. | |
| void | olaf_stream_processor_set_result_callback (Olaf_Stream_Processor *olaf_stream_processor, Olaf_FP_Matcher_Result_Callback callback) |
| Set the result callback function. | |
| void | olaf_stream_processor_set_result_header (Olaf_Stream_Processor *processor, const char *result_header) |
| Set the result header for the stream processor. | |
Makes it more easy to process an audio stream.
The stream processor
| void olaf_stream_processor_destroy | ( | Olaf_Stream_Processor * | olaf_stream_processor | ) |
Free up memory and release resources.
| olaf_stream_processor | The olaf stream processor. |
| Olaf_Stream_Processor * olaf_stream_processor_new | ( | Olaf_Runner * | runner, |
| const char * | raw_path, | ||
| const char * | orig_path ) |
Initialize a new stream processor.
| runner | The runner which determines the type of processing to take place (query, match, print,... ) | |
| [in] | raw_path | The path to the transcoded raw audio samples file |
| [in] | orig_path | The original audio path to store in meta-data. |
| void olaf_stream_processor_process | ( | Olaf_Stream_Processor * | olaf_stream_processor | ) |
Process a file from the first to last audio sample.
| olaf_stream_processor | The olaf stream processor. |
| void olaf_stream_processor_set_result_callback | ( | Olaf_Stream_Processor * | olaf_stream_processor, |
| Olaf_FP_Matcher_Result_Callback | callback ) |
Set the result callback function.
| olaf_stream_processor | The stream processor |
| callback | The callback function |
| void olaf_stream_processor_set_result_header | ( | Olaf_Stream_Processor * | processor, |
| const char * | result_header ) |
Set the result header for the stream processor.
| processor | The stream processor |
| result_header | The result header string |