mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-18 18:57:51 +02:00
added local mode
This commit is contained in:
parent
27f8f5dcb8
commit
471c9a3dad
1 changed files with 10 additions and 0 deletions
|
@ -74,10 +74,20 @@ struct SharedAudioFactors {
|
|||
float distanceCoefficient;
|
||||
float effectMix;
|
||||
};
|
||||
bool wantLocalDomain = false;
|
||||
|
||||
int main(int argc, const char* argv[]) {
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
|
||||
// Handle Local Domain testing with the --local command line
|
||||
const char* local = "--local";
|
||||
::wantLocalDomain = cmdOptionExists(argc, argv,local);
|
||||
if (::wantLocalDomain) {
|
||||
printf("Local Domain MODE!\n");
|
||||
int ip = getLocalAddress();
|
||||
sprintf(DOMAIN_IP,"%d.%d.%d.%d", (ip & 0xFF), ((ip >> 8) & 0xFF),((ip >> 16) & 0xFF), ((ip >> 24) & 0xFF));
|
||||
}
|
||||
|
||||
AgentList* agentList = AgentList::createInstance(AGENT_TYPE_AUDIO_MIXER, MIXER_LISTEN_PORT);
|
||||
|
||||
ssize_t receivedBytes = 0;
|
||||
|
|
Loading…
Reference in a new issue