fixed java 6 compatability in sound class