Bounty of 50USD for volume support on Win32?

I would pay $50 for a working implementation of these methods for Win32.

SimpleAudioEngine.h

// properties
/**
@brief The volume of the background music max value is 1.0,the min value is 0.0
@js getMusicVolume
*/
float getBackgroundMusicVolume();

/**
@brief set the volume of background music
@param volume must be in 0.0~1.0
@js setMusicVolume
*/
void setBackgroundMusicVolume(float volume);

/**
@brief The volume of the effects max value is 1.0,the min value is 0.0
*/
float getEffectsVolume();

/**
@brief set the volume of sound effecs
@param volume must be in 0.0~1.0
*/
void setEffectsVolume(float volume);

Hi Cory,

Let me ask the dev team why these don’t work.

I have tried patching the MCI Player but haven’t been able to get it to work.

Thanks for the reply. I am getting some negative reviews on Steam due to our inability to provide volume control on Windows.

SimpleAudioEngine has some bugs on Windows, but i am not sure if all the functions you mentioned can not work.

We implement new audio engine in v3.3, will you try it?

From looking at this document:

http://www.cocos2d-x.org/programmersguide/13/

it appears that SimpleAudioEngine is still the primary interface.

However, in the case of v3.3 the methods

 SimpleAudioEngine::getEffectsVolume()

and

 SimpleAudioEngine::setEffectsVolume(float volume)

are both stub methods. I see that AudioEngineImpl has some code for volume support. I don’t know what AudioEngineImpl is, but if that’s the new audio engine and SimpleAudioEngine is depreciated I don’t know.

I would really like to figure this out for v2.x … I saw this blog post

http://blog.csdn.net/dinghqalex/article/details/41155699

That seems to include support for volume code using MciPlayer, however, I could not get that implementation to work.

I’ll send the $50 via PayPal =)

Hi @zhangxm does the new Audio engine work for all platforms we support? If so, I’ll update Chapter 13 to use the new Audio Engine.

I am still very interested in any Windows implementation of SimpleAudioEngine’s volume settings and the MciPlayer backend.

No. Now it can work on all platforms except wp8, wp8.1, winrt8.1 and linux. We will write the document after we finish it.

New audio engine can work on windows. It is powerful then SimpleAudioEngine.

Can it work with Cocos2d-x v2.x?