Displaying 3 results from an estimated 3 matches for "totalsmp".
Did you mean:
totals
2024 Oct 15
1
C API: How to get a seektable for very long files?
...efinitely won't break any
decoder:
-Create a normal last seekpoint pointing to the very last frame. Total
samples should be that seekpoint + frame length
To indicate that the last seekpoint is pointing to the last frame, there
should be two placeholders:
First has the offset set to ASCII "TOTALSMP", the next one all zeros.
That some encoder adds placeholder seekpoints with that pattern just by
chance is almost 0.
When the decoder scans the seekpoints, the total_samples is 0 and if it
detects that two placeholders it will set total_samples to that value.
I don't see an issue with t...
2024 Oct 15
2
C API: How to get a seektable for very long files?
Op di 15 okt. 2024 16:18 schreef Stefan Oltmanns <stefan-oltmanns at gmx.net>:
>
> I see, but that would require changes in the software using libflac and
> require the file to be easily seekable to be able to skip to the end and
> depending on how far away the seek points are, it could take a while.
>
No, seeking to a specific sample can take a while because of all the
2024 Oct 16
1
C API: How to get a seektable for very long files?
...decoder:
> -Create a normal last seekpoint pointing to the very last frame. Total
> samples should be that seekpoint + frame length
>
> To indicate that the last seekpoint is pointing to the last frame, there
> should be two placeholders:
> First has the offset set to ASCII "TOTALSMP", the next one all zeros.
> That some encoder adds placeholder seekpoints with that pattern just by
> chance is almost 0.
>
> When the decoder scans the seekpoints, the total_samples is 0 and if it
> detects that two placeholders it will set total_samples to that value.
>
>...