[mpg123-devel] Notion of SEEK_END
Brought to you by:
sobukus
From: Thomas B. <to...@tr...> - 2023-08-29 17:21:30
|
Hi, I'm puzzled with mpg123_seek() when using SEEK_END. To seek 10 samples before the end, I'd seek(-10, SEEK_END), but this overshoots by 10 samples (length + 10). On the other hand, seek(10, SEEK_END) will go to 10 samples before the end. I think this notion is inverse to other uses of SEEK_END. Is it the expected behaviour? Unless I haven't overlooked something fundamental and my test is wrong, it should eventually be mentioned in the docs. Greetings Thomas |