diff options
author | Your Name <you@example.com> | 2019-02-26 13:21:29 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2019-02-26 13:21:29 +0000 |
commit | 89aa56f25116fc642928f352c14fe2d485532749 (patch) | |
tree | f3e74785601c2d9daca159e049cdd3be4089aec1 /prototypes.h | |
parent | 9b0002fc40f4d8b97cf2064910a9ded467f29276 (diff) | |
download | gen_msf-89aa56f25116fc642928f352c14fe2d485532749.tar.gz gen_msf-89aa56f25116fc642928f352c14fe2d485532749.tar.bz2 gen_msf-89aa56f25116fc642928f352c14fe2d485532749.zip |
working sync and audio
Diffstat (limited to 'prototypes.h')
-rw-r--r-- | prototypes.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/prototypes.h b/prototypes.h index fc09337..e6c95a4 100644 --- a/prototypes.h +++ b/prototypes.h @@ -5,10 +5,19 @@ extern void utc_to_str(char *dst, UTC u); extern void time_print_utc(const char *p, UTC u); extern void time_print_epoch(const char *p, EPOCH e); /* msf.c */ -extern void msf_make_bits(UTC u, uint8_t *a, uint8_t *b); -extern void msf_make_stream(uint8_t *v, uint8_t *a, uint8_t *b); +extern void msf_make_stream(uint8_t *v, UTC u); /* util.c */ extern int set_parity(uint8_t *d, unsigned s, unsigned e); extern void bcd_set(uint8_t *d, unsigned s, unsigned e, unsigned v); /* main.c */ extern int main(int argc, char *argv[]); +/* signal.c */ +extern void signal_init(void); +extern void signal_send_bp(int b); +/* sync.c */ +extern void sync_to_second(struct timeval *ret); +extern void sync_to_minute(struct timeval *ret); +/* audio.c */ +extern void audio_init(void); +extern void audio_start(void); +extern void audio_play(void *data, size_t len); |