* 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 CLOCK_FREQ INT64_C(1000000)
/* When creating or destroying threads in blocking mode, delay to poll thread
* status */
/* 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
-/* Minimum number of direct pictures the video output will accept without
- * creating additional pictures in system memory */
-#define VOUT_MIN_DIRECT_PICTURES 12
-
/* Statistics are displayed every n loops (=~ pictures) */
#define VOUT_STATS_NB_LOOPS 100