Paraslash Audio Streaming | |
About News Download Documentation Development |
A volume fader and alarm clock. More...
#include <regex.h>
#include <lopsub.h>
#include <math.h>
#include "mixer.lsg.h"
#include "para.h"
#include "lsu.h"
#include "fd.h"
#include "string.h"
#include "mix.h"
#include "error.h"
#include "version.h"
Macros | |
#define | NUM_SUPPORTED_MIXERS (ARRAY_SIZE(mixers)) |
#define | FOR_EACH_MIXER(i) for ((i) = 0; (i) < NUM_SUPPORTED_MIXERS; (i)++) |
#define | CMD_PTR(_cmd) (lls_cmd(LSG_MIXER_CMD_ ## _cmd, mixer_suite)) |
#define | OPT_RESULT(_cmd, _opt) |
#define | OPT_GIVEN(_cmd, _opt) (lls_opt_given(OPT_RESULT(_cmd, _opt))) |
#define | OPT_STRING_VAL(_cmd, _opt) (lls_string_val(0, OPT_RESULT(_cmd, _opt))) |
#define | OPT_UINT32_VAL(_cmd, _opt) (lls_uint32_val(0, OPT_RESULT(_cmd, _opt))) |
#define | EXPORT_CMD(_cmd) |
Typedefs | |
typedef int(* | mixer_subcommand_handler_t) (const struct mixer *) |
Functions | |
int | main (int argc, char *argv[]) |
The main function of para_mixer. More... | |
Variables | |
DEFINE_PARA_ERRLIST | |
Array of error strings. More... | |
__printf_2_3 void(* | para_log )(int, const char *,...) = date_log |
The log function of para_gui, always set to curses_log(). More... | |
const mixer_subcommand_handler_t | lsg_mixer_com_fade_user_data = &com_fade |
const mixer_subcommand_handler_t | lsg_mixer_com_sleep_user_data = &com_sleep |
const mixer_subcommand_handler_t | lsg_mixer_com_snooze_user_data = &com_snooze |
const mixer_subcommand_handler_t | lsg_mixer_com_set_user_data = &com_set |
const mixer_subcommand_handler_t | lsg_mixer_com_help_user_data = &com_help |
A volume fader and alarm clock.
#define NUM_SUPPORTED_MIXERS (ARRAY_SIZE(mixers)) |
#define FOR_EACH_MIXER | ( | i | ) | for ((i) = 0; (i) < NUM_SUPPORTED_MIXERS; (i)++) |
#define CMD_PTR | ( | _cmd | ) | (lls_cmd(LSG_MIXER_CMD_ ## _cmd, mixer_suite)) |
#define OPT_RESULT | ( | _cmd, | |
_opt | |||
) |
#define OPT_GIVEN | ( | _cmd, | |
_opt | |||
) | (lls_opt_given(OPT_RESULT(_cmd, _opt))) |
#define OPT_STRING_VAL | ( | _cmd, | |
_opt | |||
) | (lls_string_val(0, OPT_RESULT(_cmd, _opt))) |
#define OPT_UINT32_VAL | ( | _cmd, | |
_opt | |||
) | (lls_uint32_val(0, OPT_RESULT(_cmd, _opt))) |
#define EXPORT_CMD | ( | _cmd | ) |
typedef int(* mixer_subcommand_handler_t) (const struct mixer *) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
The main function of para_mixer.
The executable is linked with the alsa or the oss mixer API, or both. It has a custom log function which prefixes log messages with the current date.
argc | Argument counter. |
argv | Argument vector. |
DEFINE_PARA_ERRLIST |
Array of error strings.
__printf_2_3 void(* para_log) (int, const char *,...) = date_log |
The log function of para_gui, always set to curses_log().
const mixer_subcommand_handler_t lsg_mixer_com_fade_user_data = &com_fade |
const mixer_subcommand_handler_t lsg_mixer_com_sleep_user_data = &com_sleep |
const mixer_subcommand_handler_t lsg_mixer_com_snooze_user_data = &com_snooze |
const mixer_subcommand_handler_t lsg_mixer_com_set_user_data = &com_set |
const mixer_subcommand_handler_t lsg_mixer_com_help_user_data = &com_help |