I'm trying to thing of cases where it gets quieter when there's more danger but the only one I can think of is The Legend of Zelda Ocarina of Time. When you enter the boss chamber in a dungeon the music is stopped until you perform an action to trigger the boss appearance.