mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
CR feedback
This commit is contained in:
parent
fa787adce2
commit
2dc39512a2
2 changed files with 24 additions and 24 deletions
|
@ -53,12 +53,12 @@ AudioReflector::AudioReflector(QObject* parent) :
|
||||||
{
|
{
|
||||||
_reflections = 0;
|
_reflections = 0;
|
||||||
_diffusionPathCount = 0;
|
_diffusionPathCount = 0;
|
||||||
_averageAttenuationOfficial = _averageAttenuation = 0.0f;
|
_officialAverageAttenuation = _averageAttenuation = 0.0f;
|
||||||
_maxAttenuationOfficial = _maxAttenuation = 0.0f;
|
_officialMaxAttenuation = _maxAttenuation = 0.0f;
|
||||||
_minAttenuationOfficial = _minAttenuation = 0.0f;
|
_officialMinAttenuation = _minAttenuation = 0.0f;
|
||||||
_averageDelayOfficial = _averageDelay = 0;
|
_officialAverageDelay = _averageDelay = 0;
|
||||||
_maxDelayOfficial = _maxDelay = 0;
|
_officialMaxDelay = _maxDelay = 0;
|
||||||
_minDelayOfficial = _minDelay = 0;
|
_officialMinDelay = _minDelay = 0;
|
||||||
_inboundEchoesCount = 0;
|
_inboundEchoesCount = 0;
|
||||||
_inboundEchoesSuppressedCount = 0;
|
_inboundEchoesSuppressedCount = 0;
|
||||||
_localEchoesCount = 0;
|
_localEchoesCount = 0;
|
||||||
|
@ -384,12 +384,12 @@ void AudioReflector::echoAudio(AudioSource source, unsigned int sampleTime, cons
|
||||||
_minAttenuation = 0.0f;
|
_minAttenuation = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
_maxDelayOfficial = _maxDelay;
|
_officialMaxDelay = _maxDelay;
|
||||||
_minDelayOfficial = _minDelay;
|
_officialMinDelay = _minDelay;
|
||||||
_maxAttenuationOfficial = _maxAttenuation;
|
_officialMaxAttenuation = _maxAttenuation;
|
||||||
_minAttenuationOfficial = _minAttenuation;
|
_officialMinAttenuation = _minAttenuation;
|
||||||
_averageDelayOfficial = _averageDelay;
|
_officialAverageDelay = _averageDelay;
|
||||||
_averageAttenuationOfficial = _averageAttenuation;
|
_officialAverageAttenuation = _averageAttenuation;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,12 +81,12 @@ public:
|
||||||
public slots:
|
public slots:
|
||||||
// statistics
|
// statistics
|
||||||
int getReflections() const { return _reflections; }
|
int getReflections() const { return _reflections; }
|
||||||
float getAverageDelayMsecs() const { return _averageDelayOfficial; }
|
float getAverageDelayMsecs() const { return _officialAverageDelay; }
|
||||||
float getAverageAttenuation() const { return _averageAttenuationOfficial; }
|
float getAverageAttenuation() const { return _officialAverageAttenuation; }
|
||||||
float getMaxDelayMsecs() const { return _maxDelayOfficial; }
|
float getMaxDelayMsecs() const { return _officialMaxDelay; }
|
||||||
float getMaxAttenuation() const { return _maxAttenuationOfficial; }
|
float getMaxAttenuation() const { return _officialMaxAttenuation; }
|
||||||
float getMinDelayMsecs() const { return _minDelayOfficial; }
|
float getMinDelayMsecs() const { return _officialMinDelay; }
|
||||||
float getMinAttenuation() const { return _minAttenuationOfficial; }
|
float getMinAttenuation() const { return _officialMinAttenuation; }
|
||||||
float getDelayFromDistance(float distance);
|
float getDelayFromDistance(float distance);
|
||||||
int getDiffusionPathCount() const { return _diffusionPathCount; }
|
int getDiffusionPathCount() const { return _diffusionPathCount; }
|
||||||
int getEchoesInjected() const { return _inboundEchoesCount + _localEchoesCount; }
|
int getEchoesInjected() const { return _inboundEchoesCount + _localEchoesCount; }
|
||||||
|
@ -157,17 +157,17 @@ private:
|
||||||
float _averageDelay;
|
float _averageDelay;
|
||||||
float _maxDelay;
|
float _maxDelay;
|
||||||
float _minDelay;
|
float _minDelay;
|
||||||
float _averageDelayOfficial;
|
float _officialAverageDelay;
|
||||||
float _maxDelayOfficial;
|
float _officialMaxDelay;
|
||||||
float _minDelayOfficial;
|
float _officialMinDelay;
|
||||||
int _attenuationCount;
|
int _attenuationCount;
|
||||||
float _totalAttenuation;
|
float _totalAttenuation;
|
||||||
float _averageAttenuation;
|
float _averageAttenuation;
|
||||||
float _maxAttenuation;
|
float _maxAttenuation;
|
||||||
float _minAttenuation;
|
float _minAttenuation;
|
||||||
float _averageAttenuationOfficial;
|
float _officialAverageAttenuation;
|
||||||
float _maxAttenuationOfficial;
|
float _officialMaxAttenuation;
|
||||||
float _minAttenuationOfficial;
|
float _officialMinAttenuation;
|
||||||
|
|
||||||
|
|
||||||
glm::vec3 _listenerPosition;
|
glm::vec3 _listenerPosition;
|
||||||
|
|
Loading…
Reference in a new issue