mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 04:37:59 +02:00
Merge pull request #590 from birarda/voxel-noise
fix the default quaternion for audio injectors
This commit is contained in:
commit
7efe9264c7
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ AudioInjector::AudioInjector(const char* filename) :
|
||||||
AudioInjector::AudioInjector(int maxNumSamples) :
|
AudioInjector::AudioInjector(int maxNumSamples) :
|
||||||
_numTotalSamples(maxNumSamples),
|
_numTotalSamples(maxNumSamples),
|
||||||
_position(0.0f, 0.0f, 0.0f),
|
_position(0.0f, 0.0f, 0.0f),
|
||||||
_orientation(0.0f, 0.0f, 0.0f, 0.0f),
|
_orientation(),
|
||||||
_radius(0.0f),
|
_radius(0.0f),
|
||||||
_volume(MAX_INJECTOR_VOLUME),
|
_volume(MAX_INJECTOR_VOLUME),
|
||||||
_indexOfNextSlot(0),
|
_indexOfNextSlot(0),
|
||||||
|
|
|
@ -20,7 +20,7 @@ const int STREAM_IDENTIFIER_NUM_BYTES = 8;
|
||||||
|
|
||||||
const int MAX_INJECTOR_VOLUME = 0xFF;
|
const int MAX_INJECTOR_VOLUME = 0xFF;
|
||||||
|
|
||||||
const float INJECT_INTERVAL_USECS = (BUFFER_LENGTH_SAMPLES_PER_CHANNEL / SAMPLE_RATE) * 1000000;
|
const long long INJECT_INTERVAL_USECS = floorf((BUFFER_LENGTH_SAMPLES_PER_CHANNEL / SAMPLE_RATE) * 1000000);
|
||||||
|
|
||||||
class AudioInjector {
|
class AudioInjector {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue