From 059f5cdff85a974a6544122c41268a44b18fbb36 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 18 Nov 2023 13:59:07 -0800 Subject: til_stream: drop til_stream_start_frame() til_stream_render() bumps the frame counter, so there's no more need for a discrete frame start mechanism. --- src/til_stream.c | 8 -------- src/til_stream.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/til_stream.c b/src/til_stream.c index 3f220fb..dfc299b 100644 --- a/src/til_stream.c +++ b/src/til_stream.c @@ -136,14 +136,6 @@ int til_stream_active(til_stream_t *stream) } -void til_stream_start_frame(til_stream_t *stream) -{ - assert(stream); - - stream->frame++; -} - - til_stream_t * til_stream_free(til_stream_t *stream) { unsigned leaked; diff --git a/src/til_stream.h b/src/til_stream.h index bae5abb..42fb8e8 100644 --- a/src/til_stream.h +++ b/src/til_stream.h @@ -50,7 +50,6 @@ til_stream_t * til_stream_new(til_audio_context_t *audio_context); til_stream_t * til_stream_free(til_stream_t *stream); void til_stream_end(til_stream_t *stream); int til_stream_active(til_stream_t *stream); -void til_stream_start_frame(til_stream_t *stream); int til_stream_set_hooks(til_stream_t *stream, const til_stream_hooks_t *hooks, void *context); int til_stream_unset_hooks(til_stream_t *stream, const til_stream_hooks_t *hooks); til_audio_context_t * til_stream_get_audio_context(til_stream_t *stream); -- cgit v1.2.3