SCUMM: [RFC, don't merge yet] Change heuristic for identifying Indy 3 Mac sound (bug #14663) #5365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an attempt at fixing https://bugs.scummvm.org/ticket/14663
Note that it refers to the original 16 color Macintosh version. The one sold these days on Steam is a much later port of the VGA version, as far as I know.
The problem is that we're trying to identify what is a digitized sound (and not a piece of music) in the Macintosh version of Indiana Jones and the Last Crusade by looking at values in a barely understood header, and this value turns out not to be identical in all sounds. One exception (and perhaps the only one?) is the sound used when pouring liquids, e.g. when loosening the torch in the Venice sewers, or when filling the beer stein in the castle Brunwald kitchen.
So here I'm instead trying to look for a value that appears to be constant for all music in the game, and if it's anything different it's a digitized sound. The scary thing is that this value is within one of the unknown parts of the audio header, so I don't know if it's just luck that it seems to work.
Note that I have not played through the whole game with this change. I'm still a bit weary of it from playing through it to test the Macintosh GUI.
I do not own the EGA version, so I can't compare. But I believe it uses synthesized sound effects, not digitized ones?