Re: Two questions
Brian Willoughby <[email protected]> Mon, 9 Aug 2021 21:36:10 -0700
| Newsgroups | gmane.comp.audio.compression.flac.devel |
|---|---|
| Message-ID | <[email protected]> |
On Aug 9, 2021, at 11:31, Martijn van Beurden <[email protected]> wrote: > Op zo 8 aug. 2021 06:24 schreef Federico Miyara <[email protected]>: >> As I wanted to stop at sample Nend, I used Nend + 1, instead, to ensure that the sample Nend is the last one. > > Considering Nend, did the count start at 0 or at 1? The flac utility starts counting at 0 AFAIK, if your count starts at 1, that would explain this behaviour. Exactly. If you wanted to break a FLAC into 588-sample pieces (say, for CD audio blocks), then you would ask for --until=588 and you could get exactly 588 samples numbered 0 through 587. The second piece would be another 588 samples numbered from 588 to 1,175. It's always worked as I expected, but then again I'm a C programmer, not a Pascal programmer. ;-) Brian