Projects > cpp > Issues > Bug #542

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

[android]SimpleAudioEngine::setBackgroundMusicVolume() not work when background music changed

Bug #542 [Closed]
zhangbin@cocos2d-x.org 2011-06-26 20:14 . Updated almost 9 years ago

If the code like this:

SimpleAudioEngine::setBackgroundMusicVolume(0);
SimpleAudioEngine::playBackgroundMusic("AAA.mp3");

We expected can’t hear the music. But we heard it!

zhangbin@cocos2d-x.org 2011-06-26 20:38
  • Assignee set to zhangbin@cocos2d-x.org
zhangxm 2011-06-27 01:11
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:0db8f70c1404b1cf007d5631079e15011d02ebf7.

zhangbin@cocos2d-x.org 2011-06-27 01:11

Applied in changeset commit:fc56f32bc63073dbad1c172e438bf7f9289ef878.

yangws 2011-06-27 03:08
  • Status changed from Resolved to Closed
walzer@cocos2d-x.org 2012-05-25 08:10
  • Project changed from cocos2d-x to cpp
  • Category deleted (2)
  • Target version deleted (cocos2d-0.99.5-x-0.8.5)
ionliga 2014-11-28 14:50

The optimization introduces a bug where the priority and Touch Mode will not get changed if the list is locked.
The most straight forward fix is to merge the pHandlersToAdd and pHandlersToRemove into a queue and process through all of them in the order they are received

Pokerstar88.com Agen Texas Poker dan Domino Online Indonesia Terpercaya | Agen Bola | Taruhan Bola | Agen Bola | Olb365.com Agen Judi Bola Online, Agen Judi Casino Online Indonesia Terpercaya | Jasa SEO | Agen Sbobet

Atom PDF

Status:Closed
Start date:2011-06-26
Priority:Normal
Due date:
Assignee:zhangbin@cocos2d-x.org
% Done:

100%

Category:-
Target version:-