Greetings,
Since I have a little pack of TTA files, I tried to look for a TTA plugin for alsaplayer since I like this player for its ability to speed or backmask any song in real time.
So I tried the "experimental" plugin but it didn't worked on my 64 bits machine. So I picked up the "audacious" player implementation (which use files with the same name) and applied little modifications to get it play something. The main differences between the current plugin and the audacious' one is mainly between C size modifiers expectations.
With GCC, long int are 64 bits wide under certain 64 bits architectures (like my Intel Core 2 Duo) and 32 bits wide under certain 32 bits architectures. This causes a lot of problems with the current experimental plugin which, for example, tried to compare the TTA ID (unsigned long) taken from the TTA file with a 32 bits constant taken from the file.
But it still have problems with displaying the playing time, can't seek in the files, undefined variables and other problems which explains the "experimental" tag. :-)
Still, depending of your luck and the stars alignment, it can play a TTA file on a 64 bits machine.
To conclude, since I'm not an audio hacker and never messed with audio plugins before, I prefer to send the patch here to get it reviewed.
Cheers,
Eddahbi Karim
Modifications to get alsaplayer play a TTA file on 64 bits machine.