Commit 7d6cf033 authored by Rafaël Carré's avatar Rafaël Carré

opensles: set period size

parent d37afcfb
......@@ -51,6 +51,7 @@
#define Enqueue(a, b, c) (*a)->Enqueue(a, b, c)
#define Clear(a) (*a)->Clear(a)
#define GetState(a, b) (*a)->GetState(a, b)
#define SetPositionUpdatePeriod(a, b) (*a)->SetPositionUpdatePeriod(a, b)
/*****************************************************************************
* aout_sys_t: audio output method descriptor
......@@ -416,6 +417,8 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
p_aout->pause = Pause;
p_aout->flush = Flush;
SetPositionUpdatePeriod( p_sys->playerPlay, AOUT_MIN_PREPARE_TIME * 1000 / CLOCK_FREQ);
aout_FormatPrepare( fmt );
p_sys->format = *fmt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment