mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-08 05:33:49 -04:00
More enhancements:
- added getopt_long to parse the command line options - added -D (--device) option - added -q (--quiet) option - added -I (--iec958) option - added AC3 to IEC958 encapsulation code (not tested) - addec xrun detection and restart
This commit is contained in:
parent
3f541f6ba8
commit
97a55787e6
13 changed files with 425 additions and 120 deletions
|
|
@ -24,6 +24,15 @@
|
|||
*
|
||||
*/
|
||||
|
||||
int output_open(int bits, int rate, int channels);
|
||||
void output_play(sint_16* output_samples, uint_32 num_bytes);
|
||||
typedef struct {
|
||||
const char *pcm_name;
|
||||
int bits;
|
||||
int rate;
|
||||
int channels;
|
||||
int spdif: 1;
|
||||
int quiet: 1;
|
||||
} output_t;
|
||||
|
||||
int output_open(output_t *output);
|
||||
int output_play(sint_16* output_samples, uint_32 num_bytes);
|
||||
void output_close(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue