Converted to a reusable AudioUtil class :)