nothing like sharing crappy hacks to get one embarrased into improvements
rolled up the sleeves and got a
true understanding of how this program keeps track of time... so here's a (hopefully) better hack.
The time should now be correct for popular sample frequencies... 44.1, 48, 88.2, 96, and 192 K... both 16 and 24 bits... fire up your calculator and plug in the following numbers to check if some other freq will be correct:
((bits / 8 ) * channels * freq) / 75
If the answer is an integer (i.e. there's no fraction) it should be good to go.
That crazy formula allowed me to not completely gut the original program, while still preventing SBE's on 16/44100.
------------------
PLUS... now that it can tell time
I added another tweak... you can import a TOC file.
This means that you can take your 24 bit show (at any of the above freqs), copy it to CD quality, then bust up either one into tracks... and if you export the TOC file, you can import it to automagicly get those same track breaks on the other.
that is, if you can get wavbreaker to eat that complete huge ass 24 bit file
This wasn't something that their "offset file" method allowed.
------------------
Since you can now put a filename on the command line, I spent a chuck of time twiddling to get it to puff on a pipe so it would eat a FLAC file... something like
flac -dc x.flac | wavbreaker - but only met with partial success so far.
------------------
oh... I turned their CDDA file usage back on... but you've been warned
try something like this to see what I mean:
/usr/bin/wavebreaker /usr/bin/wavbreakeranyway... here it is if you feel dangerous... use it on the original 0.8v tarball... i.e. the one on sourceforge.