Return to site

.adf file player for mac osx

broken image
broken image

If (stat(pathname.c_str(), &statBuf) != 0) Ulong fileLength // File length in bytes.īool isDirectory // True if the path provided pointed to a directory.īool isNormalFile // True is the path provided pointed to a file.įileStats fileStatsForPath(const std::string & pathname)Įrrno = 0 // Clear the errno global, just in case. The chunk buffer is allocated dynamically (it is a std::vector) Process the input file in chunks of this size in bytes. info from the Xentax File Format Wiki. Not sure who figured this out, but I got this 34 is 22 in hexadecimal and 42 in octal. had each byte XORed with this magic constant.

broken image

The GTA Vice City ADF files are MP3 files that You canĪlso provide an explicit output filename as the third parameter. Looks for the file 'flash.adf' in the current directory and writes aįile named 'flash.mp3' to the current directory as its output. My application is very simple, it only takes one or two file namesĪnd processes every byte of the input file, producing a MP3 as output. These in turnĪre just MP3 files that had every byte XORed with the decimal constant 34. The ADF file format stores the game soundtracks and radio stations. Grand Theft Auto - Vice City game to MP3 files that can be played outside the game. I wrote a tiny command line tool that converts ADF audio files from the