fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
|
Main program entry point. More...
#include <getopt.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tinyfseq.h"
#include "tinylor.h"
#include "sl.h"
#include "audio.h"
#include "crmap.h"
#include "player.h"
#include "queue.h"
#include "serial.h"
#include "std2/errcode.h"
Macros | |
#define | TINYFSEQ_IMPLEMENTATION |
#define | TINYLOR_IMPL |
#define | SL_IMPL |
Functions | |
static void | printUsage (void) |
Prints the program usage message to stdout. | |
static void | printSerialEnumPorts (void) |
Enumerates available serial ports and prints their reported device names to stdout. | |
static int | parseOpts (const int argc, char **const argv) |
Parse command line options and sets global variables for program execution via gOpts . | |
static void | freeOpts (void) |
Frees all allocated memory retained by gOpts . | |
int | main (const int argc, char **const argv) |
Variables | ||
struct { | ||
char * seqfp | ||
Sequence file path. More... | ||
char * audiofp | ||
Audio override file path. More... | ||
char * cmapfp | ||
Channel map file path. More... | ||
unsigned int waitsec | ||
Playback start delay. More... | ||
char * spname | ||
Serial port device name. More... | ||
int spbaud | ||
Serial port baud rate. More... | ||
} | gOpts | |
Global program options. | ||
Main program entry point.
#define SL_IMPL |
#define TINYFSEQ_IMPLEMENTATION |
#define TINYLOR_IMPL |
|
static |
Frees all allocated memory retained by gOpts
.
int main | ( | const int | argc, |
char **const | argv ) |
|
static |
Parse command line options and sets global variables for program execution via gOpts
.
argc | argument count |
argv | argument vector |
|
static |
Enumerates available serial ports and prints their reported device names to stdout.
|
static |
Prints the program usage message to stdout.
char* audiofp |
Audio override file path.
char* cmapfp |
Channel map file path.
struct { ... } gOpts |
Global program options.
char* seqfp |
Sequence file path.
int spbaud |
Serial port baud rate.
char* spname |
Serial port device name.
unsigned int waitsec |
Playback start delay.