Commit 2ab46404 authored by David Fuhrmann's avatar David Fuhrmann

auhal: towards working S/PDIF output

Now, S/PDIF works at least in the sense that it plays something which "seems"
to be in sync more or less.

refs #8083
parent a2e0019f
......@@ -305,6 +305,11 @@ static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
p_aout->play = Play;
p_aout->flush = Flush;
p_aout->time_get = TimeGet;
// TODO fix TimeGet for S/PDIF
if (AOUT_FMT_SPDIF (fmt) && p_sys->b_selected_dev_is_digital)
p_aout->time_get = NULL;
p_aout->pause = Pause;
return VLC_SUCCESS;
}
......@@ -849,6 +854,11 @@ static int StartSPDIF (audio_output_t * p_aout, audio_sample_format_t *fmt)
return false;
}
/* setup circular buffer */
TPCircularBufferInit(&p_sys->circular_buffer, kBufferLength);
p_sys->i_played_length = 0;
p_sys->i_last_sample_time = 0;
return true;
}
......
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