BAdapterIO: Add initial seeking support

Operating Systems / Haiku - Dario Casalinuovo [gmail.com] - 7 June 2016 09:12 UTC

- This is by default provided using a relative buffer. When the client request a seek over the range we currently have, we will ask the backend with a SeekRequested. When the backend operation ended successfully, the client is required to call SeekCompleted before to return. This will cause the offset to change and the buffer is cleaned as result. Next data received will be considered to be at a position equal to the offset plus the relative position.

3faf39e BAdapterIO: Add initial seeking support
headers/private/media/AdapterIO.h | 79 +++++++--------
src/kits/media/AdapterIO.cpp | 190 ++++++++++++++++++++++++++++++++++---
2 files changed, 218 insertions(+), 51 deletions(-)

Upstream: cgit.haiku-os.org


  • Share