spacing changes

This commit is contained in:
Stephen Birarda 2013-05-15 12:21:43 -07:00
parent fb42e8df04
commit 44b12cb593

View file

@ -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)) {