mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 00:41:16 +02:00
bring PHASE_DELAY_AT_90 constant above algorithim that uses it
This commit is contained in:
parent
53fece29fa
commit
115c39dbcf
1 changed files with 1 additions and 2 deletions
|
@ -124,8 +124,6 @@ int main(int argc, const char* argv[]) {
|
|||
// zero out the client mix for this agent
|
||||
memset(clientSamples, 0, sizeof(clientSamples));
|
||||
|
||||
const int PHASE_DELAY_AT_90 = 20;
|
||||
|
||||
for (AgentList::iterator otherAgent = agentList->begin(); otherAgent != agentList->end(); otherAgent++) {
|
||||
if (((PositionalAudioRingBuffer*) otherAgent->getLinkedData())->willBeAddedToMix()
|
||||
&& (otherAgent != agent || (otherAgent == agent && agentRingBuffer->shouldLoopbackForAgent()))) {
|
||||
|
@ -205,6 +203,7 @@ int main(int argc, const char* argv[]) {
|
|||
glm::normalize(rotatedSourcePosition),
|
||||
glm::vec3(0.0f, 1.0f, 0.0f));
|
||||
|
||||
const int PHASE_DELAY_AT_90 = 20;
|
||||
const float PHASE_AMPLITUDE_RATIO_AT_90 = 0.5;
|
||||
|
||||
// figure out the number of samples of delay and the ratio of the amplitude
|
||||
|
|
Loading…
Reference in a new issue