mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-09 05:22:36 +02:00
fix the default orientation for an injector
This commit is contained in:
parent
89d6fd105c
commit
cece4de90e
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ AudioInjector::AudioInjector(const char* filename) :
|
|||
AudioInjector::AudioInjector(int maxNumSamples) :
|
||||
_numTotalSamples(maxNumSamples),
|
||||
_position(0.0f, 0.0f, 0.0f),
|
||||
_orientation(0.0f, 0.0f, 0.0f, 0.0f),
|
||||
_orientation(),
|
||||
_radius(0.0f),
|
||||
_volume(MAX_INJECTOR_VOLUME),
|
||||
_indexOfNextSlot(0),
|
||||
|
|
|
@ -20,7 +20,7 @@ const int STREAM_IDENTIFIER_NUM_BYTES = 8;
|
|||
|
||||
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 {
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue