mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
fixed more small bugs with AudioRingBuffer constructor
This commit is contained in:
parent
2c6b2000b2
commit
94c0c15c76
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ Audio::Audio(int16_t initialJitterBufferSamples, QObject* parent) :
|
||||||
_processSpatialAudio(false),
|
_processSpatialAudio(false),
|
||||||
_spatialAudioStart(0),
|
_spatialAudioStart(0),
|
||||||
_spatialAudioFinish(0),
|
_spatialAudioFinish(0),
|
||||||
_spatialAudioRingBuffer(NETWORK_BUFFER_LENGTH_BYTES_PER_CHANNEL, true), // random access mode
|
_spatialAudioRingBuffer(NETWORK_BUFFER_LENGTH_SAMPLES_STEREO, true), // random access mode
|
||||||
_scopeEnabled(false),
|
_scopeEnabled(false),
|
||||||
_scopeEnabledPause(false),
|
_scopeEnabledPause(false),
|
||||||
_scopeInputOffset(0),
|
_scopeInputOffset(0),
|
||||||
|
|
|
@ -29,7 +29,7 @@ void AudioRingBufferTests::runAllTests() {
|
||||||
int readIndexAt;
|
int readIndexAt;
|
||||||
|
|
||||||
|
|
||||||
AudioRingBuffer ringBuffer(10, 10); // makes buffer of 100 int16_t samples
|
AudioRingBuffer ringBuffer(10, false, 10); // makes buffer of 100 int16_t samples
|
||||||
for (int T = 0; T < 300; T++) {
|
for (int T = 0; T < 300; T++) {
|
||||||
|
|
||||||
writeIndexAt = 0;
|
writeIndexAt = 0;
|
||||||
|
|
Loading…
Reference in a new issue