mirror of https://github.com/axmolengine/axmol.git
Fix format string warnings
This commit is contained in:
parent
3177f3431e
commit
4c1c238f74
|
@ -321,7 +321,7 @@ void AudioEngineImpl::setVolume(int audioID,float volume)
|
||||||
}
|
}
|
||||||
auto result = (*player._fdPlayerVolume)->SetVolumeLevel(player._fdPlayerVolume, dbVolume);
|
auto result = (*player._fdPlayerVolume)->SetVolumeLevel(player._fdPlayerVolume, dbVolume);
|
||||||
if(SL_RESULT_SUCCESS != result){
|
if(SL_RESULT_SUCCESS != result){
|
||||||
log("%s error:%u",__func__, result);
|
log("%s error:%lu", __func__, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -341,7 +341,7 @@ void AudioEngineImpl::pause(int audioID)
|
||||||
auto& player = _audioPlayers[audioID];
|
auto& player = _audioPlayers[audioID];
|
||||||
auto result = (*player._fdPlayerPlay)->SetPlayState(player._fdPlayerPlay, SL_PLAYSTATE_PAUSED);
|
auto result = (*player._fdPlayerPlay)->SetPlayState(player._fdPlayerPlay, SL_PLAYSTATE_PAUSED);
|
||||||
if(SL_RESULT_SUCCESS != result){
|
if(SL_RESULT_SUCCESS != result){
|
||||||
log("%s error:%u",__func__, result);
|
log("%s error:%lu", __func__, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ void AudioEngineImpl::resume(int audioID)
|
||||||
auto& player = _audioPlayers[audioID];
|
auto& player = _audioPlayers[audioID];
|
||||||
auto result = (*player._fdPlayerPlay)->SetPlayState(player._fdPlayerPlay, SL_PLAYSTATE_PLAYING);
|
auto result = (*player._fdPlayerPlay)->SetPlayState(player._fdPlayerPlay, SL_PLAYSTATE_PLAYING);
|
||||||
if(SL_RESULT_SUCCESS != result){
|
if(SL_RESULT_SUCCESS != result){
|
||||||
log("%s error:%u",__func__, result);
|
log("%s error:%lu", __func__, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,7 +359,7 @@ void AudioEngineImpl::stop(int audioID)
|
||||||
auto& player = _audioPlayers[audioID];
|
auto& player = _audioPlayers[audioID];
|
||||||
auto result = (*player._fdPlayerPlay)->SetPlayState(player._fdPlayerPlay, SL_PLAYSTATE_STOPPED);
|
auto result = (*player._fdPlayerPlay)->SetPlayState(player._fdPlayerPlay, SL_PLAYSTATE_STOPPED);
|
||||||
if(SL_RESULT_SUCCESS != result){
|
if(SL_RESULT_SUCCESS != result){
|
||||||
log("%s error:%u",__func__, result);
|
log("%s error:%lu", __func__, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*If destroy openSL object immediately,it may cause dead lock.
|
/*If destroy openSL object immediately,it may cause dead lock.
|
||||||
|
|
Loading…
Reference in New Issue