Added gkGetSoundOffset.
refactored some stuff