diff --git a/interface/src/Audio.cpp b/interface/src/Audio.cpp index 04d918a500..a33b8e5854 100644 --- a/interface/src/Audio.cpp +++ b/interface/src/Audio.cpp @@ -302,7 +302,6 @@ Audio::Audio(Oscilloscope* scope) : _packetsReceivedThisPlayback(0) { outputPortAudioError(Pa_Initialize()); - outputPortAudioError(Pa_OpenDefaultStream(&_stream, 2, 2, @@ -330,7 +329,7 @@ void Audio::addProceduralSounds(int16_t* inputBuffer, int numSamples) { const float MAX_AUDIBLE_VELOCITY = 6.0; const float MIN_AUDIBLE_VELOCITY = 0.1; float speed = glm::length(_lastVelocity); - float volume = 400 * (1.f - speed/MAX_AUDIBLE_VELOCITY); + float volume = 400 * (1.f - speed / MAX_AUDIBLE_VELOCITY); // Add a noise-modulated sinewave with volume that tapers off with speed increasing if ((speed > MIN_AUDIBLE_VELOCITY) && (speed < MAX_AUDIBLE_VELOCITY)) {