style fixes

This commit is contained in:
ZappoMan 2013-07-23 18:31:57 -07:00
parent 13ba913fab
commit 927b0b6708
2 changed files with 7 additions and 7 deletions

View file

@ -37,13 +37,13 @@ bool PositionalAudioRingBuffer::isListeningToSource(PositionalAudioRingBuffer* o
default: default:
case AudioRingBuffer::NORMAL: case AudioRingBuffer::NORMAL:
return true; return true;
break; break;
case AudioRingBuffer::OMNI_DIRECTIONAL_POINT: { case AudioRingBuffer::OMNI_DIRECTIONAL_POINT: {
float distance = glm::distance(_position, other->_position); float distance = glm::distance(_position, other->_position);
return distance <= _listenRadius; return distance <= _listenRadius;
break; break;
} }
case AudioRingBuffer::SELECTED_SOURCES: case AudioRingBuffer::SELECTED_SOURCES:
if (_listenSources) { if (_listenSources) {
for (int i = 0; i < _listenSourceCount; i++) { for (int i = 0; i < _listenSourceCount; i++) {
@ -53,7 +53,7 @@ bool PositionalAudioRingBuffer::isListeningToSource(PositionalAudioRingBuffer* o
} }
} }
return false; return false;
break; break;
} }
} }

View file

@ -45,7 +45,7 @@ float floatArguments[4] = {0.0f, 0.0f, 0.0f, 0.0f};
unsigned char volume = DEFAULT_INJECTOR_VOLUME; unsigned char volume = DEFAULT_INJECTOR_VOLUME;
float triggerDistance = 0.0f; float triggerDistance = 0.0f;
float radius = 0.0f; float radius = 0.0f;
bool wantLocalDomain = false; bool wantsLocalDomain = false;
void usage(void) { void usage(void) {
@ -100,7 +100,7 @@ bool processParameters(int parameterCount, char* parameterData[]) {
std::cout << "[DEBUG] Injector radius: " << optarg << std::endl; std::cout << "[DEBUG] Injector radius: " << optarg << std::endl;
break; break;
case 'l': case 'l':
::wantLocalDomain = true; ::wantsLocalDomain = true;
break; break;
default: default:
usage(); usage();
@ -133,7 +133,7 @@ int main(int argc, char* argv[]) {
// create an NodeList instance to handle communication with other nodes // create an NodeList instance to handle communication with other nodes
NodeList* nodeList = NodeList::createInstance(NODE_TYPE_AUDIO_INJECTOR, AUDIO_UDP_SEND_PORT); NodeList* nodeList = NodeList::createInstance(NODE_TYPE_AUDIO_INJECTOR, AUDIO_UDP_SEND_PORT);
if (::wantLocalDomain) { if (::wantsLocalDomain) {
printf("Local Domain MODE!\n"); printf("Local Domain MODE!\n");
nodeList->setDomainIPToLocalhost(); nodeList->setDomainIPToLocalhost();
} }