remove leftover listening mode, fix UUID push in InjectedAudioRingBuffer

This commit is contained in:
Stephen Birarda 2013-10-21 15:03:07 -07:00
parent 1b129a43b5
commit fbb097accb
4 changed files with 4 additions and 12 deletions

View file

@ -82,7 +82,7 @@ void AudioMixer::addBufferToMixForListeningNodeWithBuffer(PositionalAudioRingBuf
stk::TwoPole* otherNodeTwoPole = NULL;
if (bufferToAdd != listeningNodeBuffer) {
// if the two buffer pointers do no match then these are different buffers
// if the two buffer pointers do not match then these are different buffers
glm::vec3 listenerPosition = listeningNodeBuffer->getPosition();
glm::vec3 relativePosition = bufferToAdd->getPosition() - listeningNodeBuffer->getPosition();

View file

@ -27,14 +27,6 @@ const short RING_BUFFER_LENGTH_SAMPLES = RING_BUFFER_LENGTH_FRAMES * BUFFER_LENG
class AudioRingBuffer : public NodeData {
public:
static int const DEFAULT_LISTEN_LIST_SIZE = 100;
typedef enum {
NORMAL,
OMNI_DIRECTIONAL_POINT,
SELECTED_SOURCES
} ListenMode;
AudioRingBuffer(bool isStereo);
~AudioRingBuffer();

View file

@ -25,8 +25,8 @@ InjectedAudioRingBuffer::InjectedAudioRingBuffer(const QUuid& streamIdentifier)
int InjectedAudioRingBuffer::parseData(unsigned char* sourceBuffer, int numBytes) {
unsigned char* currentBuffer = sourceBuffer + numBytesForPacketHeader(sourceBuffer);
// push past the UUID for this injector
currentBuffer += NUM_BYTES_RFC4122_UUID;
// push past the UUID for this node and the stream identifier
currentBuffer += (NUM_BYTES_RFC4122_UUID * 2);
// use parsePositionalData in parent PostionalAudioRingBuffer class to pull common positional data
currentBuffer += parsePositionalData(currentBuffer, numBytes - (currentBuffer - sourceBuffer));

View file

@ -70,6 +70,6 @@ bool PositionalAudioRingBuffer::shouldBeAddedToMix(int numJitterBufferSamples) {
return true;
}
}
printf("packet mismatch...\n");
return false;
}