bug fixe

bug fix on events function
audio manager class because both windows will use minim function