mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:56:25 +02:00
cleanup in Audio and Util
This commit is contained in:
parent
4f74e5a6e2
commit
90a08b4dd8
2 changed files with 2 additions and 7 deletions
|
@ -317,8 +317,8 @@ void *receiveAudioViaUDP(void *args) {
|
||||||
|
|
||||||
if (LOG_SAMPLE_DELAY) {
|
if (LOG_SAMPLE_DELAY) {
|
||||||
|
|
||||||
char *directory = new char[50];
|
char directory[50];
|
||||||
char *filename = new char[50];
|
char filename[50];
|
||||||
|
|
||||||
sprintf(directory, "%s/Desktop/echo_tests", getenv("HOME"));
|
sprintf(directory, "%s/Desktop/echo_tests", getenv("HOME"));
|
||||||
|
|
||||||
|
@ -326,9 +326,6 @@ void *receiveAudioViaUDP(void *args) {
|
||||||
sprintf(filename, "%s/%ld.csv", directory, previousReceiveTime.tv_sec);
|
sprintf(filename, "%s/%ld.csv", directory, previousReceiveTime.tv_sec);
|
||||||
|
|
||||||
logFile.open(filename, std::ios::out);
|
logFile.open(filename, std::ios::out);
|
||||||
|
|
||||||
delete[] directory;
|
|
||||||
delete[] filename;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!stopAudioReceiveThread) {
|
while (!stopAudioReceiveThread) {
|
||||||
|
|
|
@ -24,7 +24,6 @@ using namespace std;
|
||||||
// no clue which versions are affected...
|
// no clue which versions are affected...
|
||||||
#define WORKAROUND_BROKEN_GLUT_STROKES
|
#define WORKAROUND_BROKEN_GLUT_STROKES
|
||||||
// see http://www.opengl.org/resources/libraries/glut/spec3/node78.html
|
// see http://www.opengl.org/resources/libraries/glut/spec3/node78.html
|
||||||
static float MONO_STROKE_WIDTH_GLUT = 104.76;
|
|
||||||
|
|
||||||
void eulerToOrthonormals(glm::vec3 * angles, glm::vec3 * front, glm::vec3 * right, glm::vec3 * up) {
|
void eulerToOrthonormals(glm::vec3 * angles, glm::vec3 * front, glm::vec3 * right, glm::vec3 * up) {
|
||||||
//
|
//
|
||||||
|
@ -172,7 +171,6 @@ void drawtext(int x, int y, float scale, float rotate, float thick, int mono,
|
||||||
//
|
//
|
||||||
// Draws text on screen as stroked so it can be resized
|
// Draws text on screen as stroked so it can be resized
|
||||||
//
|
//
|
||||||
int len, i;
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glTranslatef( static_cast<float>(x), static_cast<float>(y), 0.0f);
|
glTranslatef( static_cast<float>(x), static_cast<float>(y), 0.0f);
|
||||||
glColor3f(r,g,b);
|
glColor3f(r,g,b);
|
||||||
|
|
Loading…
Reference in a new issue