Fix compile errors from merge
This commit is contained in:
parent
392cefbee4
commit
75453510e0
@ -100,9 +100,9 @@ public:
|
||||
|
||||
//////////////////versioning///////////////
|
||||
|
||||
const int get_release() const { return RELEASE; }
|
||||
const int get_major_version() const { return MAJOR_VERSION; }
|
||||
const int get_minor_version() const { return MINOR_VERSION; }
|
||||
int get_release() const { return RELEASE; }
|
||||
int get_major_version() const { return MAJOR_VERSION; }
|
||||
int get_minor_version() const { return MINOR_VERSION; }
|
||||
QString get_version_string();
|
||||
|
||||
///////////////////////////////////////////
|
||||
|
@ -22,7 +22,7 @@ void AOBlipPlayer::set_blips(QString p_sfx)
|
||||
FALSE, f_path.utf16(), 0, 0, BASS_UNICODE | BASS_ASYNCFILE);
|
||||
}
|
||||
|
||||
set_volume(m_volume);
|
||||
set_volume_internal(m_volume);
|
||||
}
|
||||
|
||||
void AOBlipPlayer::blip_tick()
|
||||
@ -44,7 +44,9 @@ void AOBlipPlayer::blip_tick()
|
||||
|
||||
void AOBlipPlayer::set_volume(int p_value)
|
||||
{
|
||||
m_volume = p_value;
|
||||
m_volume = static_cast<qreal>(p_value) / 100;
|
||||
set_volume_internal(m_volume);
|
||||
}
|
||||
|
||||
void AOBlipPlayer::set_volume_internal(qreal p_value)
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ void AOSfxPlayer::set_volume(qreal p_value)
|
||||
set_volume_internal(m_volume);
|
||||
}
|
||||
|
||||
void AOSfxPlayer::set_volume(int p_value)
|
||||
void AOSfxPlayer::set_volume_internal(qreal p_value)
|
||||
{
|
||||
float volume = static_cast<float>(p_value);
|
||||
for (int n_stream = 0; n_stream < m_channelmax; ++n_stream) {
|
||||
|
Loading…
Reference in New Issue
Block a user