Tools: add BS1 mac compression in compress_sword1
|Reported by:||criezy||Owned by:||sev-|
|Cc:||Game:||Broken Sword 1|
This patch add support for compressing the mac version of BS1 in compress_sword1. It mainly does two things: 1) Add AIFF encoding to mp3/ogg/flac in the CompressionTool class. I have implemented it in that class in case it is needed by other tools, but if you prefer you can move the encodeAIF() function to the CompressSword1 class instead. 2) When using the mac version (it is detected by looking if the music files are AIF or WAV) it uses the same heuristic as the ScummVM sword1 engine to detect if the speech files are little or big endian and pass that to setRawAudioType().
It works fine with my mac version (little endian speech file) but I have no way to check that it also works fine when the speech is in big endian.
Ticket imported from: #2925828. Ticket imported from: patches/1236.