fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
seq.h File Reference

FSEQ sequence file loading API. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int Seq_open (struct FC *fc, struct tf_header_t **seq)
 Reads a FSEQ header and initializes the header struct with the sequence's metadata. The caller is responsible for freeing the header.
 
int Seq_getMediaFile (struct FC *fc, const struct tf_header_t *seq, char **value)
 Retrieves the audio file path from the sequence for playback by searching the FSEQ's variable table for the mf (media file) variable.
 

Detailed Description

FSEQ sequence file loading API.

Function Documentation

◆ Seq_getMediaFile()

int Seq_getMediaFile ( struct FC * fc,
const struct tf_header_t * seq,
char ** value )

Retrieves the audio file path from the sequence for playback by searching the FSEQ's variable table for the mf (media file) variable.

Parameters
fctarget file controller instance
seqsequence header for file layout information
valuethe value of the mf variable if found, otherwise set to NULL
Returns
0 on success, a negative error code on failure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Seq_open()

int Seq_open ( struct FC * fc,
struct tf_header_t ** seq )

Reads a FSEQ header and initializes the header struct with the sequence's metadata. The caller is responsible for freeing the header.

Parameters
fctarget file controller instance
seqthe sequence header to populate with the FSEQ metadata
Returns
0 on success, a negative error code on failure
Here is the call graph for this function:
Here is the caller graph for this function: