Volume adjustment for "COCOS2D" version 3.0 under Windows platform modification issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.