我正在为我的游戏使用 Buildbox。我实施了自定义激励广告。问题是当奖励视频打开时游戏音乐会继续。我想在观看视频后静音和取消静音。
我知道 Java,但我不擅长 Objective-C 和 Cocos2dx。
我的AudioEngine.h类:在 libs/cocos2dx/include/audio/include/ 下
/****************************************************************************
Copyright (c) 2014-2015 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do …Run Code Online (Sandbox Code Playgroud)