* General configuration
*****************************************************************************/
-#define CLOCK_FREQ 1000000
+/* All timestamp below or equal to this define are invalid/unset
+ * XXX the numerical value is 0 because of historical reason and will change.*/
+#define VLC_TS_INVALID (0)
+#define VLC_TS_0 (1)
+#define CLOCK_FREQ INT64_C(1000000)
/* When creating or destroying threads in blocking mode, delay to poll thread
* status */
/* Number of read() calls needed until we check the file size through
* fstat() */
-#define INPUT_FSTAT_NB_READS 10
+#define INPUT_FSTAT_NB_READS 16
/*
* General limitations
/* Max acceptable resampling (in %) */
#define AOUT_MAX_RESAMPLING 10
+/*****************************************************************************
+ * SPU configuration
+ *****************************************************************************/
+
+/* Buffer must avoid arriving more than SPU_MAX_PREPARE_TIME in advanced to
+ * the SPU */
+#define SPU_MAX_PREPARE_TIME ((mtime_t)(0.5*CLOCK_FREQ))
+
/*****************************************************************************
* Video configuration
*****************************************************************************/
* (~1 Mbyte) before using huge values */
#define VOUT_MAX_PICTURES 16
-/* Statistics are displayed every n loops (=~ pictures) */
-#define VOUT_STATS_NB_LOOPS 100
-
/*
* Time settings
*/