cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.22k stars 7.05k forks source link

Toggle AudioPlayer debug output on/off #18995

Open xerosugar opened 6 years ago

xerosugar commented 6 years ago

A request: I wish I could disable the output that AudioPlayer prints out sometimes, because when you have a few of your own CCLOGs in your code, they drown in all the AudioPlayer output. I'm thinking something like AudioEngine::setDebugOutputEnabled(true/false); or similar.

rh101 commented 6 years ago

An alternative suggestion, can the debug output be disabled by default and only enabled via a pre-processor define (one that can even be passed as a compilation switch via -D XYZ etc).