From f9e0e3dea3068453efc0d9559d1b98d22cd5a7cb Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 15 Sep 2023 20:36:27 +0300 Subject: fixed SubStream of cached streams * in particular: SndfileStream(...):sub(...) for multi-channel audio files. * The fix is more of a workaround just like the initial skipping of samples by sub() is a workaround. I couldn't yet think of a way how to seek in streams elegantly. --- TODO | 3 --- 1 file changed, 3 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index c157b61..d49a831 100644 --- a/TODO +++ b/TODO @@ -3,9 +3,6 @@ * Stream:foreach() cannot be interrupted Perhaps C core should export an interrupted variable that we can check from Lua. For Stream:play() this is solved differently. -* SndfileStream(...):sub(...) does not work for multi-channel audio files. - The reason is that SubStream ticks in gtick() to seek in the source stream - which cannot work in cached streams (SndfileStream:ctor() caches for multi-channel streams). # Features -- cgit v1.2.3