diff options
Diffstat (limited to 'audio/decode/ad.h')
-rw-r--r-- | audio/decode/ad.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/decode/ad.h b/audio/decode/ad.h index 771ceb7e88..bbb050eb4c 100644 --- a/audio/decode/ad.h +++ b/audio/decode/ad.h @@ -35,8 +35,11 @@ struct ad_functions { int (*init)(struct dec_audio *da, const char *decoder); void (*uninit)(struct dec_audio *da); int (*control)(struct dec_audio *da, int cmd, void *arg); - int (*decode_packet)(struct dec_audio *da, struct demux_packet *pkt, - struct mp_audio **out); + // Return whether or not the packet has been consumed. + bool (*send_packet)(struct dec_audio *da, struct demux_packet *pkt); + // Return whether decoding is still going on (false if EOF was reached). + // Never returns false & *out set, but can return true with !*out. + bool (*receive_frame)(struct dec_audio *da, struct mp_audio **out); }; enum ad_ctrl { |