How does the brain detect the appearance of new sounds?

Our brain needs to perceive the world around us by hearing and recreating it in our mind. This requires that our brain has a way of identifying any new sound as it appears, separating it from other sounds that are present and finally representing it as a distinct object in our mind. An important question in understanding how the brain recreates an 'auditory scene' is therefore: how does the brain detects appearance of new sounds?