Update CMakeLists.txt
AudioData now deletes any allocated memory it owns.

AudioData now will delete rawSamples* if it owns that piece of memory,
this is the case for loaded audio files.
Also, a few ugly casts are removed.