mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 15:54:31 +02:00
play opera for single user audio server test
This commit is contained in:
parent
b20ab5b5ca
commit
616a1cb45f
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue