/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h> /* calloc(), malloc(), free() */
-#include <string.h>
-
#include <vlc/vlc.h>
#include <vlc_aout.h>
#include "aout_internal.h"
{
/* Non-S/PDIF mixer only deals with float32 or fixed32. */
p_aout->mixer.mixer.i_format
- = (p_aout->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) ?
+ = (vlc_CPU() & CPU_CAPABILITY_FPU) ?
VLC_FOURCC('f','l','3','2') :
VLC_FOURCC('f','i','3','2');
aout_FormatPrepare( &p_aout->mixer.mixer );
* --Gibalou
*/
{
+ const mtime_t i_delta = p_buffer->start_date - start_date;
vlc_mutex_unlock( &p_aout->output_fifo_lock );
+
if ( !p_aout->output.b_starving )
msg_Dbg( p_aout, "audio output is starving ("I64Fd"), "
- "playing silence", p_buffer->start_date - start_date );
+ "playing silence", i_delta );
p_aout->output.b_starving = 1;
return NULL;
}