search for: ov_reopen

Displaying 2 results from an estimated 2 matches for "ov_reopen".

Did you mean: ov_open
2018 Nov 03
2
Decode ogg file while downloading: what are the good practices?
Well, your " OggPlayer::release; OggPlayer::open; before OggPlayer::seek" seems to work! Thank you so much! Also, I'll take a look at the Opus codec, thanks for the advice! For your information, here was the problem in details: let's say I download an audio file whose length is 300 seconds. When, for example, 15 seconds of the file were downloaded, I called OggPlayer::open().
2018 Nov 03
0
Decode ogg file while downloading: what are the good practices?
...at said, isn't there any function that allows to rebuild that seek table? Nope. I don't recall anyone with this particular usecase in the past. Players have tended to assume the resource is non-seekable, or implemented seek over http. Doesn't look like it would be too hard to add an ov_reopen() or similar, if you're interested in contributing something. I think it would still have to be an explicit call before the seek, since it's considerably more expensive than a normal seek. Is the overhead of closing and re-opening the handle significant on android? -r