Settings for setting music and sound effects, including volume settings, are encountered in the game's settings.
However, in version 3.0, the volume settings found under the Windows platform cannot be set. View Source code discovery, this part of actually didn't realize .... One is the function that always returns 1.0, one is empty ... The test items that Coco gives are also not adjustable.
began to find a solution. The existing approach is as follows: (the problem was reflected in the community, and then someone raised a issue, resolved as follows)
Address is: https://github.com/cocos2d/cocos2d-x/pull/2416/files
Cocosdenshion/win32/mciplayer.h
Note that the variable name in the Red box in version 3.0 has been renamed, please change the name after renaming.
Ok.
Volume adjustment for "COCOS2D" version 3.0 under Windows platform modification issues