Page MenuHomeFeedback Tracker

AbstractWave GetCurrPosition() returns the wrong value
New, NormalPublic

Description

For some reason there is some limit in AbstractWave
in the GetCurrPosition() function
Please fix it, because it should vary from 0 to 1
It always returns a float value up to 0.42
or 42% as in the example below:

https://youtu.be/hthTmW13D2Y

void DebugTestMessages()
	{
		if(!m_RadioLoop) return;
		
		AbstractWave m_AbstractWave = m_RadioLoop.GetSoundWaveObject();
		if(m_AbstractWave && m_AbstractWave.IsHeaderLoaded())
		{
			float CurrPos = m_AbstractWave.GetCurrPosition();
			string message = "Wave position: " + Math.Round(CurrPos * 100) + "%";
			
			PlayerBase m_p_tmp = GetMyPlayer();
			if(m_p_tmp) m_p_tmp.MessageAction(message);
		}
	}

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

roughly how it can be reproduced:

void DebugTestMessages()
	{
		if(!m_RadioLoop) return;
		
		AbstractWave m_AbstractWave = m_RadioLoop.GetSoundWaveObject();
		if(m_AbstractWave && m_AbstractWave.IsHeaderLoaded())
		{
			float CurrPos = m_AbstractWave.GetCurrPosition();
			string message = "Wave position: " + Math.Round(CurrPos * 100) + "%";
			
			PlayerBase m_p_tmp = GetMyPlayer();
			if(m_p_tmp) m_p_tmp.MessageAction(message);
		}
	}

Event Timeline

DrZiLLo created this task.Mon, Jan 20, 1:10 AM