X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvlc_aout.h;h=7a9d6e8ea3aa4faa80bc6b8acebb271acbc5ee91;hb=7126e09051e22576fc8ca7ac9a184b1ee85cea45;hp=b3d49542ba0993f4f87852bfd26e8873ef605bcb;hpb=d3d3989066d1d5400f3dd495c8cc79bfe350bd35;p=vlc diff --git a/include/vlc_aout.h b/include/vlc_aout.h index b3d49542ba..7a9d6e8ea3 100644 --- a/include/vlc_aout.h +++ b/include/vlc_aout.h @@ -67,10 +67,13 @@ && ((p_first)->i_physical_channels == (p_second)->i_physical_channels)\ && ((p_first)->i_original_channels == (p_second)->i_original_channels) ) +#define AOUT_FMT_LINEAR( p_format ) \ + (aout_BitsPerSample((p_format)->i_format) != 0) + #define VLC_CODEC_SPDIFL VLC_FOURCC('s','p','d','i') #define VLC_CODEC_SPDIFB VLC_FOURCC('s','p','d','b') -#define AOUT_FMT_NON_LINEAR( p_format ) \ +#define AOUT_FMT_SPDIF( p_format ) \ ( ((p_format)->i_format == VLC_CODEC_SPDIFL) \ || ((p_format)->i_format == VLC_CODEC_SPDIFB) \ || ((p_format)->i_format == VLC_CODEC_A52) \ @@ -266,6 +269,7 @@ typedef struct aout_fifo_t partial; /**< Audio blocks before packetization */ aout_fifo_t fifo; /**< Packetized audio blocks */ mtime_t pause_date; /**< Date when paused or VLC_TS_INVALID */ + mtime_t time_report; /**< Desynchronization estimate or VLC_TS_INVALID */ unsigned samples; /**< Samples per packet */ bool starving; /**< Whether currently starving (to limit error messages) */ } aout_packet_t;