setVolume doesn't take floats
This commit is contained in:
parent
1504aaf6b2
commit
ece08930e3
@ -81,10 +81,7 @@ void AOBlipPlayer::blip_tick()
|
|||||||
void AOBlipPlayer::set_volume(int p_value)
|
void AOBlipPlayer::set_volume(int p_value)
|
||||||
{
|
{
|
||||||
m_volume = p_value;
|
m_volume = p_value;
|
||||||
|
m_blips.setVolume(m_volume);
|
||||||
float volume = p_value / 100.0f;
|
|
||||||
|
|
||||||
m_blips.setVolume(volume);
|
|
||||||
}
|
}
|
||||||
#else //No audio
|
#else //No audio
|
||||||
AOBlipPlayer::AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app)
|
AOBlipPlayer::AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app)
|
||||||
|
@ -94,8 +94,7 @@ void AOSfxPlayer::stop()
|
|||||||
void AOSfxPlayer::set_volume(int p_value)
|
void AOSfxPlayer::set_volume(int p_value)
|
||||||
{
|
{
|
||||||
m_volume = p_value;
|
m_volume = p_value;
|
||||||
float volume = p_value / 100.0f;
|
m_sfx.setVolume(m_volume);
|
||||||
m_sfx.setVolume(volume);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app)
|
AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app)
|
||||||
|
Loading…
Reference in New Issue
Block a user