startInternal now cleans up audio resources when the playback thread is finished. Added fix for undefned DBL_MAX