'Handles the state of the soundn object'

def handle_state(self):

    if (self.state == c.NORMAL):
        if self.mario.dead:
            self.play_music('death', c.MARIO_DEAD)
        elif (self.mario.invincible and (self.mario.losing_invincibility == False)):
            self.play_music('invincible', c.MARIO_INVINCIBLE)
        elif (self.mario.state == c.FLAGPOLE):
            self.play_music('flagpole', c.FLAGPOLE)
        elif (self.overhead_info.time == 100):
            self.play_music('out_of_time', c.TIME_WARNING)
    elif (self.state == c.FLAGPOLE):
        if (self.mario.state == c.WALKING_TO_CASTLE):
            self.play_music('stage_clear', c.STAGE_CLEAR)
    elif (self.state == c.STAGE_CLEAR):
        if self.mario.in_castle:
            self.sfx_dict['count_down'].play()
            self.state = c.FAST_COUNT_DOWN
    elif (self.state == c.FAST_COUNT_DOWN):
        if (self.overhead_info.time == 0):
            self.sfx_dict['count_down'].stop()
            self.state = c.WORLD_CLEAR
    elif (self.state == c.TIME_WARNING):
        if (pg.mixer.music.get_busy() == 0):
            self.play_music('main_theme_sped_up', c.SPED_UP_NORMAL)
        elif self.mario.dead:
            self.play_music('death', c.MARIO_DEAD)
    elif (self.state == c.SPED_UP_NORMAL):
        if self.mario.dead:
            self.play_music('death', c.MARIO_DEAD)
        elif (self.mario.state == c.FLAGPOLE):
            self.play_music('flagpole', c.FLAGPOLE)
    elif (self.state == c.MARIO_INVINCIBLE):
        if ((self.mario.current_time - self.mario.invincible_start_timer) > 11000):
            self.play_music('main_theme', c.NORMAL)
        elif self.mario.dead:
            self.play_music('death', c.MARIO_DEAD)
    elif (self.state == c.WORLD_CLEAR):
        pass
    elif (self.state == c.MARIO_DEAD):
        pass
    elif (self.state == c.GAME_OVER):
        pass
