mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:23:00 +02:00
Testing audio noise generation at client
This commit is contained in:
parent
331d4116d9
commit
e1645b1158
2 changed files with 9 additions and 1 deletions
|
@ -111,7 +111,11 @@ int audioCallback (const void *inputBuffer,
|
||||||
|
|
||||||
int16_t *inputLeft = ((int16_t **) inputBuffer)[0];
|
int16_t *inputLeft = ((int16_t **) inputBuffer)[0];
|
||||||
|
|
||||||
// printLog("Audio callback at %6.0f\n", usecTimestampNow()/1000);
|
// Add some noise to the audio we got from the callback
|
||||||
|
|
||||||
|
for (int i = 0; i < BUFFER_LENGTH_SAMPLES; i++) {
|
||||||
|
inputLeft[i] = (int16_t) (rand() % 65536);
|
||||||
|
}
|
||||||
|
|
||||||
if (inputLeft != NULL) {
|
if (inputLeft != NULL) {
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,10 @@ bool countVoxelsOperation(VoxelNode* node, void* extraData) {
|
||||||
return true; // keep going
|
return true; // keep going
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void addLandscape(VoxelTree * tree) {
|
||||||
|
printf("Adding Landscape...\n");
|
||||||
|
}
|
||||||
|
|
||||||
void addScene(VoxelTree * tree) {
|
void addScene(VoxelTree * tree) {
|
||||||
printf("adding scene...\n");
|
printf("adding scene...\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue