Design Decision Question Regarding Redbook Audio Implementation (A.K.A. Arrays Start at 2)

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
User avatar
SirYodaJedi
Posts: 9
Joined: Wed Oct 02, 2019 6:47 pm
Contact:

Design Decision Question Regarding Redbook Audio Implementation (A.K.A. Arrays Start at 2)

Post by SirYodaJedi »

Since the first audio track on a mixed-media CD is track 02, why does it need to be renamed to "Track1.*" (and later tracks likewise) when ripping to use with ScummVM? Since a CD ripper that outputs unprocessed WAVs (other than adding the header, of course) will usually name them "Track 02.wav" and so forth, this seems like a pointless extra step from the end user to decrement each filenames by 1 and remove leading 0s and spaces (after converting to FLAC/OGG/MP3, but that's a welcome improvement). What is the technical reason behind this?
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Re: Design Decision Question Regarding Redbook Audio Implementation (A.K.A. Arrays Start at 2)

Post by digitall »

This is based on looking at the commit history as I was not around at the time, but this dates back to the time between ScummVM v0.1.0 and v0.2.0 release around 2002 ... so it has been like that for more than 15 years.

The advice on Track1.mp3 etc. naming was added by this commit to the readme.txt:
https://github.com/scummvm/scummvm/comm ... ffcc259064
Post Reply