Closed steve8x8 closed 10 months ago
What about
int trackNum = chapter + 1;
string fileName = Path.Combine(outDirectory, outFileName + " - Track #" + trackNum.ToString("00") + ".ogg");
to avoid the conditional clause?
Fixed by merge #53
The previous comment should have had a trailing question mark...
If there was a new build of Teddy / TeddyBench we might find out. Any volunteers?
Currently (version 1.2.0 seems to be latest?), output filenames use the pattern "%s-%08X - Track #%d.ogg", with the original filename for the first variable, and - apparently - the audio ID for the second. It's the third variable part that breaks sorting order once there are more than 9 tracks. Since tonies are limited to 99 tracks, using "%02d" instead of "%d" should be sufficient to fix this.
I currently cannot use TeddyBench, therefore I'm unable to check whether it's affected as well.
PS.: Checking the source code (TonieAudio.cs) I'm now aware it's not C (line 856) and the suggested format string doesn't apply, but what about replacing
with something like
? (Should I set up a MR for this?)