From 616a1cb45fb2d9f654d2972100d664ffde2cf258 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 11 Feb 2013 18:15:56 -0800 Subject: [PATCH] play opera for single user audio server test --- mixer/src/socket.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mixer/src/socket.cpp b/mixer/src/socket.cpp index 83a08a2a81..4967721047 100644 --- a/mixer/src/socket.cpp +++ b/mixer/src/socket.cpp @@ -160,11 +160,10 @@ void *send_buffer_thread(void *args) sentBytes = 0; int sampleOffset = ((currentFrame - 1) * BUFFER_LENGTH_SAMPLES) % whiteNoiseLength; - // memcpy(masterMix, whiteNoiseBuffer + sampleOffset, BUFFER_LENGTH_BYTES); - // memset(masterMix, 0, BUFFER_LENGTH_BYTES); + int16_t *noisePointer = whiteNoiseBuffer + sampleOffset; for (int wb = 0; wb < BUFFER_LENGTH_SAMPLES; wb++) { - masterMix[wb] = 0; + masterMix[wb] = noisePointer[wb]; } gettimeofday(&sendTime, NULL);