Aesthetics

Reformat to make item borders more visible
Fix cases of stray tabs and vertical misalignments

Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
malc 2009-08-11 20:48:02 +04:00
parent 1a40d5e235
commit 98f9f48ccb
10 changed files with 394 additions and 288 deletions

View File

@ -786,10 +786,8 @@ static int alsa_run_in (HWVoiceIn *hw)
int add; int add;
int len; int len;
} bufs[2] = { } bufs[2] = {
{.add = hw->wpos, { .add = hw->wpos, .len = 0 },
.len = 0}, { .add = 0, .len = 0 }
{.add = 0,
.len = 0}
}; };
snd_pcm_sframes_t avail; snd_pcm_sframes_t avail;
snd_pcm_uframes_t read_samples = 0; snd_pcm_uframes_t read_samples = 0;
@ -937,50 +935,71 @@ static void alsa_audio_fini (void *opaque)
} }
static struct audio_option alsa_options[] = { static struct audio_option alsa_options[] = {
{.name = "DAC_SIZE_IN_USEC", {
.name = "DAC_SIZE_IN_USEC",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.size_in_usec_out, .valp = &conf.size_in_usec_out,
.descr = "DAC period/buffer size in microseconds (otherwise in frames)"}, .descr = "DAC period/buffer size in microseconds (otherwise in frames)"
{.name = "DAC_PERIOD_SIZE", },
{
.name = "DAC_PERIOD_SIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.period_size_out, .valp = &conf.period_size_out,
.descr = "DAC period size (0 to go with system default)", .descr = "DAC period size (0 to go with system default)",
.overriddenp = &conf.period_size_out_overridden}, .overriddenp = &conf.period_size_out_overridden
{.name = "DAC_BUFFER_SIZE", },
{
.name = "DAC_BUFFER_SIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.buffer_size_out, .valp = &conf.buffer_size_out,
.descr = "DAC buffer size (0 to go with system default)", .descr = "DAC buffer size (0 to go with system default)",
.overriddenp = &conf.buffer_size_out_overridden}, .overriddenp = &conf.buffer_size_out_overridden
{.name = "ADC_SIZE_IN_USEC", },
{
.name = "ADC_SIZE_IN_USEC",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.size_in_usec_in, .valp = &conf.size_in_usec_in,
.descr = "ADC period/buffer size in microseconds (otherwise in frames)"}, .descr =
{.name = "ADC_PERIOD_SIZE", "ADC period/buffer size in microseconds (otherwise in frames)"
},
{
.name = "ADC_PERIOD_SIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.period_size_in, .valp = &conf.period_size_in,
.descr = "ADC period size (0 to go with system default)", .descr = "ADC period size (0 to go with system default)",
.overriddenp = &conf.period_size_in_overridden}, .overriddenp = &conf.period_size_in_overridden
{.name = "ADC_BUFFER_SIZE", },
{
.name = "ADC_BUFFER_SIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.buffer_size_in, .valp = &conf.buffer_size_in,
.descr = "ADC buffer size (0 to go with system default)", .descr = "ADC buffer size (0 to go with system default)",
.overriddenp = &conf.buffer_size_in_overridden}, .overriddenp = &conf.buffer_size_in_overridden
{.name = "THRESHOLD", },
{
.name = "THRESHOLD",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.threshold, .valp = &conf.threshold,
.descr = "(undocumented)"}, .descr = "(undocumented)"
{.name = "DAC_DEV", },
{
.name = "DAC_DEV",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.pcm_name_out, .valp = &conf.pcm_name_out,
.descr = "DAC device name (for instance dmix)"}, .descr = "DAC device name (for instance dmix)"
{.name = "ADC_DEV", },
{
.name = "ADC_DEV",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.pcm_name_in, .valp = &conf.pcm_name_in,
.descr = "ADC device name"}, .descr = "ADC device name"
{.name = "VERBOSE", },
{
.name = "VERBOSE",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.verbose, .valp = &conf.verbose,
.descr = "Behave in a more verbose way"}, .descr = "Behave in a more verbose way"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -1493,60 +1493,86 @@ static void audio_timer (void *opaque)
static struct audio_option audio_options[] = { static struct audio_option audio_options[] = {
/* DAC */ /* DAC */
{.name = "DAC_FIXED_SETTINGS", {
.name = "DAC_FIXED_SETTINGS",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.fixed_out.enabled, .valp = &conf.fixed_out.enabled,
.descr = "Use fixed settings for host DAC"}, .descr = "Use fixed settings for host DAC"
{.name = "DAC_FIXED_FREQ", },
{
.name = "DAC_FIXED_FREQ",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fixed_out.settings.freq, .valp = &conf.fixed_out.settings.freq,
.descr = "Frequency for fixed host DAC"}, .descr = "Frequency for fixed host DAC"
{.name = "DAC_FIXED_FMT", },
{
.name = "DAC_FIXED_FMT",
.tag = AUD_OPT_FMT, .tag = AUD_OPT_FMT,
.valp = &conf.fixed_out.settings.fmt, .valp = &conf.fixed_out.settings.fmt,
.descr = "Format for fixed host DAC"}, .descr = "Format for fixed host DAC"
{.name = "DAC_FIXED_CHANNELS", },
{
.name = "DAC_FIXED_CHANNELS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fixed_out.settings.nchannels, .valp = &conf.fixed_out.settings.nchannels,
.descr = "Number of channels for fixed DAC (1 - mono, 2 - stereo)"}, .descr = "Number of channels for fixed DAC (1 - mono, 2 - stereo)"
{.name = "DAC_VOICES", },
{
.name = "DAC_VOICES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fixed_out.nb_voices, .valp = &conf.fixed_out.nb_voices,
.descr = "Number of voices for DAC"}, .descr = "Number of voices for DAC"
},
/* ADC */ /* ADC */
{.name = "ADC_FIXED_SETTINGS", {
.name = "ADC_FIXED_SETTINGS",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.fixed_in.enabled, .valp = &conf.fixed_in.enabled,
.descr = "Use fixed settings for host ADC"}, .descr = "Use fixed settings for host ADC"
{.name = "ADC_FIXED_FREQ", },
{
.name = "ADC_FIXED_FREQ",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fixed_in.settings.freq, .valp = &conf.fixed_in.settings.freq,
.descr = "Frequency for fixed host ADC"}, .descr = "Frequency for fixed host ADC"
{.name = "ADC_FIXED_FMT", },
{
.name = "ADC_FIXED_FMT",
.tag = AUD_OPT_FMT, .tag = AUD_OPT_FMT,
.valp = &conf.fixed_in.settings.fmt, .valp = &conf.fixed_in.settings.fmt,
.descr = "Format for fixed host ADC"}, .descr = "Format for fixed host ADC"
{.name = "ADC_FIXED_CHANNELS", },
{
.name = "ADC_FIXED_CHANNELS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fixed_in.settings.nchannels, .valp = &conf.fixed_in.settings.nchannels,
.descr = "Number of channels for fixed ADC (1 - mono, 2 - stereo)"}, .descr = "Number of channels for fixed ADC (1 - mono, 2 - stereo)"
{.name = "ADC_VOICES", },
{
.name = "ADC_VOICES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fixed_in.nb_voices, .valp = &conf.fixed_in.nb_voices,
.descr = "Number of voices for ADC"}, .descr = "Number of voices for ADC"
},
/* Misc */ /* Misc */
{.name = "TIMER_PERIOD", {
.name = "TIMER_PERIOD",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.period.hertz, .valp = &conf.period.hertz,
.descr = "Timer period in HZ (0 - use lowest possible)"}, .descr = "Timer period in HZ (0 - use lowest possible)"
{.name = "PLIVE", },
{
.name = "PLIVE",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.plive, .valp = &conf.plive,
.descr = "(undocumented)"}, .descr = "(undocumented)"
{.name = "LOG_TO_MONITOR", },
{
.name = "LOG_TO_MONITOR",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.log_to_monitor, .valp = &conf.log_to_monitor,
.descr = ".descr = print logging messages to monitor instead of stderr"}, .descr = ".descr = print logging messages to monitor instead of stderr"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -513,14 +513,18 @@ static void coreaudio_audio_fini (void *opaque)
} }
static struct audio_option coreaudio_options[] = { static struct audio_option coreaudio_options[] = {
{.name = "BUFFER_SIZE", {
.name = "BUFFER_SIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.buffer_frames, .valp = &conf.buffer_frames,
.descr = "Size of the buffer in frames"}, .descr = "Size of the buffer in frames"
{.name = "BUFFER_COUNT", },
{
.name = "BUFFER_COUNT",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.nbuffers, .valp = &conf.nbuffers,
.descr = "Number of buffers"}, .descr = "Number of buffers"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -1033,46 +1033,66 @@ static void *dsound_audio_init (void)
} }
static struct audio_option dsound_options[] = { static struct audio_option dsound_options[] = {
{.name = "LOCK_RETRIES", {
.name = "LOCK_RETRIES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.lock_retries, .valp = &conf.lock_retries,
.descr = "Number of times to attempt locking the buffer"}, .descr = "Number of times to attempt locking the buffer"
{.name = "RESTOURE_RETRIES", },
{
.name = "RESTOURE_RETRIES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.restore_retries, .valp = &conf.restore_retries,
.descr = "Number of times to attempt restoring the buffer"}, .descr = "Number of times to attempt restoring the buffer"
{.name = "GETSTATUS_RETRIES", },
{
.name = "GETSTATUS_RETRIES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.getstatus_retries, .valp = &conf.getstatus_retries,
.descr = "Number of times to attempt getting status of the buffer"}, .descr = "Number of times to attempt getting status of the buffer"
{.name = "SET_PRIMARY", },
{
.name = "SET_PRIMARY",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.set_primary .valp = &conf.set_primary
.descr = "Set the parameters of primary buffer"}, .descr = "Set the parameters of primary buffer"
{.name = "LATENCY_MILLIS", },
{
.name = "LATENCY_MILLIS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.latency_millis, .valp = &conf.latency_millis,
.descr = "(undocumented)"}, .descr = "(undocumented)"
{.name = "PRIMARY_FREQ", },
{
.name = "PRIMARY_FREQ",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.settings.freq, .valp = &conf.settings.freq,
.descr = "Primary buffer frequency"}, .descr = "Primary buffer frequency"
{.name = "PRIMARY_CHANNELS", },
{
.name = "PRIMARY_CHANNELS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.settings.nchannels, .valp = &conf.settings.nchannels,
.descr = "Primary buffer number of channels (1 - mono, 2 - stereo)"}, .descr = "Primary buffer number of channels (1 - mono, 2 - stereo)"
{.name = "PRIMARY_FMT", },
{
.name = "PRIMARY_FMT",
.tag = AUD_OPT_FMT, .tag = AUD_OPT_FMT,
.valp = &conf.settings.fmt, .valp = &conf.settings.fmt,
.descr = "Primary buffer format"}, .descr = "Primary buffer format"
{.name = "BUFSIZE_OUT", },
{
.name = "BUFSIZE_OUT",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.bufsize_out, .valp = &conf.bufsize_out,
.descr = "(undocumented)"}, .descr = "(undocumented)"
{.name = "BUFSIZE_IN", },
{
.name = "BUFSIZE_IN",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.bufsize_in, .valp = &conf.bufsize_in,
.descr = "(undocumented)"}, .descr = "(undocumented)"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -549,22 +549,30 @@ static void qesd_audio_fini (void *opaque)
} }
struct audio_option qesd_options[] = { struct audio_option qesd_options[] = {
{.name = "SAMPLES", {
.name = "SAMPLES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.samples, .valp = &conf.samples,
.descr = "buffer size in samples"}, .descr = "buffer size in samples"
{.name = "DIVISOR", },
{
.name = "DIVISOR",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.divisor, .valp = &conf.divisor,
.descr = "threshold divisor"}, .descr = "threshold divisor"
{.name = "DAC_HOST", },
{
.name = "DAC_HOST",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.dac_host, .valp = &conf.dac_host,
.descr = "playback host"}, .descr = "playback host"
{.name = "ADC_HOST", },
{
.name = "ADC_HOST",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.adc_host, .valp = &conf.adc_host,
.descr = "capture host"}, .descr = "capture host"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -513,40 +513,27 @@ static struct {
const char *name; const char *name;
int type; int type;
} drvtab[] = { } drvtab[] = {
{.name = "none", { .name = "none", .type = FSOUND_OUTPUT_NOSOUND },
.type = FSOUND_OUTPUT_NOSOUND},
#ifdef _WIN32 #ifdef _WIN32
{.name = "winmm", { .name = "winmm", .type = FSOUND_OUTPUT_WINMM },
.type = FSOUND_OUTPUT_WINMM}, { .name = "dsound", .type = FSOUND_OUTPUT_DSOUND },
{.name = "dsound", { .name = "a3d", .type = FSOUND_OUTPUT_A3D },
.type = FSOUND_OUTPUT_DSOUND}, { .name = "asio", .type = FSOUND_OUTPUT_ASIO },
{.name = "a3d",
.type = FSOUND_OUTPUT_A3D},
{.name = "asio",
.type = FSOUND_OUTPUT_ASIO},
#endif #endif
#ifdef __linux__ #ifdef __linux__
{.name = "oss", { .name = "oss", .type = FSOUND_OUTPUT_OSS },
.type = FSOUND_OUTPUT_OSS}, { .name = "alsa", .type = FSOUND_OUTPUT_ALSA },
{.name = "alsa", { .name = "esd", .type = FSOUND_OUTPUT_ESD },
.type = FSOUND_OUTPUT_ALSA},
{.name = "esd",
.type = FSOUND_OUTPUT_ESD},
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
{.name = "mac", { .name = "mac", .type = FSOUND_OUTPUT_MAC },
.type = FSOUND_OUTPUT_MAC},
#endif #endif
#if 0 #if 0
{.name = "xbox", { .name = "xbox", .type = FSOUND_OUTPUT_XBOX },
.type = FSOUND_OUTPUT_XBOX}, { .name = "ps2", .type = FSOUND_OUTPUT_PS2 },
{.name = "ps2", { .name = "gcube", .type = FSOUND_OUTPUT_GC },
.type = FSOUND_OUTPUT_PS2},
{.name = "gcube",
.type = FSOUND_OUTPUT_GC},
#endif #endif
{.name = "none-realtime", { .name = "none-realtime", .type = FSOUND_OUTPUT_NOSOUND_NONREALTIME }
.type = FSOUND_OUTPUT_NOSOUND_NONREALTIME}
}; };
static void *fmod_audio_init (void) static void *fmod_audio_init (void)
@ -648,31 +635,43 @@ static void fmod_audio_fini (void *opaque)
} }
static struct audio_option fmod_options[] = { static struct audio_option fmod_options[] = {
{.name = "DRV", {
.name = "DRV",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.drvname, .valp = &conf.drvname,
.descr = "FMOD driver"}, .descr = "FMOD driver"
{.name = "FREQ", },
{
.name = "FREQ",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.freq, .valp = &conf.freq,
.descr = "Default frequency"}, .descr = "Default frequency"
{.name = "SAMPLES", },
{
.name = "SAMPLES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.nb_samples, .valp = &conf.nb_samples,
.descr = "Buffer size in samples"}, .descr = "Buffer size in samples"
{.name = "CHANNELS", },
{
.name = "CHANNELS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.nb_channels, .valp = &conf.nb_channels,
.descr = "Number of default channels (1 - mono, 2 - stereo)"}, .descr = "Number of default channels (1 - mono, 2 - stereo)"
{.name = "BUFSIZE", },
{
.name = "BUFSIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.bufsize, .valp = &conf.bufsize,
.descr = "(undocumented)"} .descr = "(undocumented)"
}
#if 0 #if 0
{.name = "THRESHOLD", {
.name = "THRESHOLD",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.threshold, .valp = &conf.threshold,
.descr = "(undocumented)"} .descr = "(undocumented)"
}
#endif #endif
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -654,10 +654,8 @@ static int oss_run_in (HWVoiceIn *hw)
int add; int add;
int len; int len;
} bufs[2] = { } bufs[2] = {
{.add = hw->wpos, { .add = hw->wpos, .len = 0 },
.len = 0}, { .add = 0, .len = 0 }
{.add = 0,
.len = 0}
}; };
if (!dead) { if (!dead) {
@ -738,30 +736,42 @@ static void oss_audio_fini (void *opaque)
} }
static struct audio_option oss_options[] = { static struct audio_option oss_options[] = {
{.name = "FRAGSIZE", {
.name = "FRAGSIZE",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.fragsize, .valp = &conf.fragsize,
.descr = "Fragment size in bytes"}, .descr = "Fragment size in bytes"
{.name = "NFRAGS", },
{
.name = "NFRAGS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.nfrags, .valp = &conf.nfrags,
.descr = "Number of fragments"}, .descr = "Number of fragments"
{.name = "MMAP", },
{
.name = "MMAP",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.try_mmap, .valp = &conf.try_mmap,
.descr = "Try using memory mapped access"}, .descr = "Try using memory mapped access"
{.name = "DAC_DEV", },
{
.name = "DAC_DEV",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.devpath_out, .valp = &conf.devpath_out,
.descr = "Path to DAC device"}, .descr = "Path to DAC device"
{.name = "ADC_DEV", },
{
.name = "ADC_DEV",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.devpath_in, .valp = &conf.devpath_in,
.descr = "Path to ADC device"}, .descr = "Path to ADC device"
{.name = "DEBUG", },
{
.name = "DEBUG",
.tag = AUD_OPT_BOOL, .tag = AUD_OPT_BOOL,
.valp = &conf.debug, .valp = &conf.debug,
.descr = "Turn on some debugging messages"}, .descr = "Turn on some debugging messages"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -466,26 +466,36 @@ static void qpa_audio_fini (void *opaque)
} }
struct audio_option qpa_options[] = { struct audio_option qpa_options[] = {
{.name = "SAMPLES", {
.name = "SAMPLES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.samples, .valp = &conf.samples,
.descr = "buffer size in samples"}, .descr = "buffer size in samples"
{.name = "DIVISOR", },
{
.name = "DIVISOR",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.divisor, .valp = &conf.divisor,
.descr = "threshold divisor"}, .descr = "threshold divisor"
{.name = "SERVER", },
{
.name = "SERVER",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.server, .valp = &conf.server,
.descr = "server address"}, .descr = "server address"
{.name = "SINK", },
{
.name = "SINK",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.sink, .valp = &conf.sink,
.descr = "sink device name"}, .descr = "sink device name"
{.name = "SOURCE", },
{
.name = "SOURCE",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.source, .valp = &conf.source,
.descr = "source device name"}, .descr = "source device name"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -420,10 +420,12 @@ static void sdl_audio_fini (void *opaque)
} }
static struct audio_option sdl_options[] = { static struct audio_option sdl_options[] = {
{.name = "SAMPLES", {
.name = "SAMPLES",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.nb_samples, .valp = &conf.nb_samples,
.descr = "Size of SDL buffer in samples"}, .descr = "Size of SDL buffer in samples"
},
{ /* End of list */ } { /* End of list */ }
}; };

View File

@ -216,22 +216,30 @@ static void wav_audio_fini (void *opaque)
} }
static struct audio_option wav_options[] = { static struct audio_option wav_options[] = {
{.name = "FREQUENCY", {
.name = "FREQUENCY",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.settings.freq, .valp = &conf.settings.freq,
.descr = "Frequency"}, .descr = "Frequency"
{.name = "FORMAT", },
{
.name = "FORMAT",
.tag = AUD_OPT_FMT, .tag = AUD_OPT_FMT,
.valp = &conf.settings.fmt, .valp = &conf.settings.fmt,
.descr = "Format"}, .descr = "Format"
{.name = "DAC_FIXED_CHANNELS", },
{
.name = "DAC_FIXED_CHANNELS",
.tag = AUD_OPT_INT, .tag = AUD_OPT_INT,
.valp = &conf.settings.nchannels, .valp = &conf.settings.nchannels,
.descr = "Number of channels (1 - mono, 2 - stereo)"}, .descr = "Number of channels (1 - mono, 2 - stereo)"
{.name = "PATH", },
{
.name = "PATH",
.tag = AUD_OPT_STR, .tag = AUD_OPT_STR,
.valp = &conf.wav_path, .valp = &conf.wav_path,
.descr = "Path to wave file"}, .descr = "Path to wave file"
},
{ /* End of list */ } { /* End of list */ }
}; };