mirror of https://github.com/axmolengine/axmol.git
issue #2415: Formating codes in SimpleAudioEngineOpenAL.cpp.
This commit is contained in:
parent
a60c3eaa20
commit
8c182d257d
|
@ -120,7 +120,7 @@ namespace CocosDenshion
|
||||||
|
|
||||||
if (bReleaseData)
|
if (bReleaseData)
|
||||||
{
|
{
|
||||||
for (BackgroundMusicsMap::iterator it = s_backgroundMusics.begin(); it != s_backgroundMusics.end(); ++it)
|
for (auto it = s_backgroundMusics.begin(); it != s_backgroundMusics.end(); ++it)
|
||||||
{
|
{
|
||||||
if (it->second->source == s_backgroundSource)
|
if (it->second->source == s_backgroundSource)
|
||||||
{
|
{
|
||||||
|
@ -370,8 +370,6 @@ namespace CocosDenshion
|
||||||
|
|
||||||
void SimpleAudioEngine::setBackgroundMusicVolume(float volume)
|
void SimpleAudioEngine::setBackgroundMusicVolume(float volume)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (s_volume != volume && volume >= -0.0001 && volume <= 1.0001)
|
if (s_volume != volume && volume >= -0.0001 && volume <= 1.0001)
|
||||||
{
|
{
|
||||||
s_volume = volume;
|
s_volume = volume;
|
||||||
|
|
Loading…
Reference in New Issue