Merge pull request #151 from birarda/audio

fix for other agent iterator in audio mixer
This commit is contained in:
birarda 2013-04-26 10:51:05 -07:00
commit d3d59ff915

View file

@ -126,7 +126,7 @@ void *sendBuffer(void *args)
int16_t clientMix[BUFFER_LENGTH_SAMPLES_PER_CHANNEL * 2] = {};
for (AgentList::iterator otherAgent = agentList->begin(); agent != agentList->end(); agent++) {
for (AgentList::iterator otherAgent = agentList->begin(); otherAgent != agentList->end(); otherAgent++) {
if (otherAgent != agent || ( otherAgent == agent && agentWantsLoopback)) {
AudioRingBuffer* otherAgentBuffer = (AudioRingBuffer*) otherAgent->getLinkedData();