Code: Select all
File path: sw_avb/module_avb_audio/src/media_fifos/media_output_fifo.h
struct media_output_fifo_data_t {
int zero_flag; //!< When set, the FIFO will output zero samples instead of its contents
unsigned int dptr; //!< The read pointer
unsigned int wrptr; //!< The write pointer
unsigned int marker; //!< This indicates which sample is the one which the timestamps
// apply to
int local_ts; //!< When a marked sample has played out, this contains the ref clock when
//it happened.
int ptp_ts; //!< Contains the PTP timestamp of the marked sample.
unsigned int sample_count; //!< The count of samples that have passed through the buffer.
unsigned int zero_marker; //!<
ofifo_state_t state; //!< State of the FIFO
int last_notification_time; //!< Last time that the clock recovery thread was informed
//of the timestamp info
int media_clock; //!<
int pending_init_notification; //!<
int volume; //!< The linear volume multipler in 2.30 signed fixed point format
//what is the 2.30 signed fixed point format ???
//And how to control the AVB media steam volume size ???
unsigned int fifo[MEDIA_OUTPUT_FIFO_WORD_SIZE];
};