mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-31 22:25:34 -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
|
|
@ -38,7 +38,7 @@ static uint_8 *chunk_start, *chunk_end;
|
|||
uint_32 bits_left;
|
||||
uint_32 current_word;
|
||||
|
||||
void (*bitstream_fill_buffer)(uint_8**,uint_8**);
|
||||
ssize_t (*bitstream_fill_buffer)(uint_8**,uint_8**);
|
||||
|
||||
uint_8 bitstream_get_byte(void)
|
||||
{
|
||||
|
|
@ -122,7 +122,7 @@ bitstream_get_bh(uint_32 num_bits)
|
|||
}
|
||||
|
||||
void
|
||||
bitstream_init(void(*fill_function)(uint_8**,uint_8**))
|
||||
bitstream_init(ssize_t(*fill_function)(uint_8**,uint_8**))
|
||||
{
|
||||
// Setup the buffer fill callback
|
||||
bitstream_fill_buffer = fill_function;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue