debug_assert: assert, only used for debug mode, does nothing in release mode.
log: quick & easy format for fprintf(stderr, "audiosync: [message]\n");. Maybe one for error, equivalent to fprintf(stderr, "audiosync: [message] failed\n");
UNUSED(x) = (void)(x), useful for unused variables.
As a sidenote, changing the library name to audiosync from vidify_audiosync wouldn't be a bad idea.
Some needed macros that could go in audiosync.h:
debug_assert
: assert, only used for debug mode, does nothing in release mode.log
: quick & easy format forfprintf(stderr, "audiosync: [message]\n");
. Maybe one forerror
, equivalent tofprintf(stderr, "audiosync: [message] failed\n");
UNUSED(x)
=(void)(x)
, useful for unused variables.As a sidenote, changing the library name to
audiosync
fromvidify_audiosync
wouldn't be a bad idea.