Testing audio noise generation at client

This commit is contained in:
Philip Rosedale 2013-05-07 12:48:35 -07:00
parent 331d4116d9
commit e1645b1158
2 changed files with 9 additions and 1 deletions

View file

@ -111,7 +111,11 @@ int audioCallback (const void *inputBuffer,
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) {

View file

@ -19,6 +19,10 @@ bool countVoxelsOperation(VoxelNode* node, void* extraData) {
return true; // keep going
}
void addLandscape(VoxelTree * tree) {
printf("Adding Landscape...\n");
}
void addScene(VoxelTree * tree) {
printf("adding scene...\n");