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)
 | 
			
		||||
{
 | 
			
		||||
  m_volume = p_value;
 | 
			
		||||
 | 
			
		||||
  float volume = p_value / 100.0f;
 | 
			
		||||
 | 
			
		||||
  m_blips.setVolume(volume);
 | 
			
		||||
  m_blips.setVolume(m_volume);
 | 
			
		||||
}
 | 
			
		||||
#else //No audio
 | 
			
		||||
AOBlipPlayer::AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app)
 | 
			
		||||
 | 
			
		||||
@ -94,8 +94,7 @@ void AOSfxPlayer::stop()
 | 
			
		||||
void AOSfxPlayer::set_volume(int p_value)
 | 
			
		||||
{
 | 
			
		||||
  m_volume = p_value;
 | 
			
		||||
  float volume = p_value / 100.0f;
 | 
			
		||||
  m_sfx.setVolume(volume);
 | 
			
		||||
  m_sfx.setVolume(m_volume);
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user