log depending on logging level, macro added
sound and music management updated