mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 11:42:55 +02:00
style fixes
This commit is contained in:
parent
13ba913fab
commit
927b0b6708
2 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue