mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +02:00
remove some of the explicit floats to hunt down digital noise
This commit is contained in:
parent
f0f0df2cf3
commit
431cbec734
1 changed files with 10 additions and 13 deletions
|
@ -1,4 +1,10 @@
|
|||
#ifndef _WIN32
|
||||
//
|
||||
// main.cpp
|
||||
// mixer
|
||||
//
|
||||
// Created by Stephen Birarda on 2/1/13.
|
||||
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
|
@ -31,7 +37,7 @@ const unsigned short MIXER_LISTEN_PORT = 55443;
|
|||
const float SAMPLE_RATE = 22050.0;
|
||||
|
||||
const short JITTER_BUFFER_MSECS = 12;
|
||||
const short JITTER_BUFFER_SAMPLES = JITTER_BUFFER_MSECS * (SAMPLE_RATE / 1000.0f);
|
||||
const short JITTER_BUFFER_SAMPLES = JITTER_BUFFER_MSECS * (SAMPLE_RATE / 1000.0);
|
||||
|
||||
const int BUFFER_LENGTH_BYTES = 1024;
|
||||
const int BUFFER_LENGTH_SAMPLES_PER_CHANNEL = (BUFFER_LENGTH_BYTES / 2) / sizeof(int16_t);
|
||||
|
@ -44,8 +50,8 @@ const float BUFFER_SEND_INTERVAL_USECS = (BUFFER_LENGTH_SAMPLES_PER_CHANNEL / SA
|
|||
const long MAX_SAMPLE_VALUE = std::numeric_limits<int16_t>::max();
|
||||
const long MIN_SAMPLE_VALUE = std::numeric_limits<int16_t>::min();
|
||||
|
||||
const float DISTANCE_RATIO = 3.0f/4.2f;
|
||||
const float PHASE_AMPLITUDE_RATIO_AT_90 = 0.5f;
|
||||
const float DISTANCE_RATIO = 3.0/4.2;
|
||||
const float PHASE_AMPLITUDE_RATIO_AT_90 = 0.5;
|
||||
const int PHASE_DELAY_AT_90 = 20;
|
||||
|
||||
|
||||
|
@ -302,12 +308,3 @@ int main(int argc, const char * argv[])
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(int argc, const char * argv[])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif _WIN32
|
||||
|
|
Loading…
Reference in a new issue