diff --git a/include/rem_auframe.h b/include/rem_auframe.h index c0295a2..3644484 100644 --- a/include/rem_auframe.h +++ b/include/rem_auframe.h @@ -2,6 +2,7 @@ * Audio frame */ +#include #define AUDIO_TIMEBASE 1000000U /** @@ -15,7 +16,8 @@ struct auframe { uint64_t timestamp; /**< Timestamp in AUDIO_TIMEBASE units */ double level; /**< Audio level in dBov */ uint8_t ch; /**< Channels */ - uint8_t padding[7]; + uint16_t id; /**< Frame/Channel identifier */ + uint8_t padding[5]; }; void auframe_init(struct auframe *af, enum aufmt fmt, void *sampv, diff --git a/src/auframe/auframe.c b/src/auframe/auframe.c index d1abfb1..60d1b2d 100644 --- a/src/auframe/auframe.c +++ b/src/auframe/auframe.c @@ -40,6 +40,7 @@ void auframe_init(struct auframe *af, enum aufmt fmt, void *sampv, af->srate = srate; af->level = AULEVEL_UNDEF; af->ch = ch; + af->id = 0; }