kyleneideck / BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.
GNU General Public License v2.0
16.25k stars 676 forks source link

Bad sound with Xcode app #130

Open SimonRigard opened 7 years ago

SimonRigard commented 7 years ago

Hi, I usually listen to music on youtube in Chrome or Safari when I work on Xcode. The thing is, when I put a breakpoint in my program to debug on Xcode, the music from my Browser start to be really buggy like if it was some king of performance problem and returns to normal when I pass the breakpoint.

Is that normal due to the use of processor of my mac ? (which is fine btw) Thank you !

kyleneideck commented 6 years ago

I'm not sure what would be causing that. Does it happen with any Xcode project or just certain ones?

I tried debugging the simple program below in Xcode with a YouTube video playing in Chrome and Safari, but didn't notice any problems.

    while(1){
        usleep(5000000);
        std::cout << "Hello, World!\n";  // Breakpoint here
    }
SimonRigard commented 6 years ago

I'm working with cocos2d development tool (C++), on a mobile game and the problem occurs with every breakpoint until the game resumes. I also noticed that the bugged sound also appears a bit when stopping the game.

After some tests, it does not happen when I'm on other classic projects so maybe it's a problem with cocos2d.