mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
spacing changes
This commit is contained in:
parent
fb42e8df04
commit
44b12cb593
1 changed files with 1 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue