mirror of
https://github.com/overte-org/overte.git
synced 2025-07-04 09:29:17 +02:00
have mixer use sockaddr when calling UDPSocket receive
This commit is contained in:
parent
41691a8aae
commit
c28ace9c15
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ int main(int argc, const char * argv[])
|
||||||
pthread_create(&sendBufferThread, NULL, sendBuffer, NULL);
|
pthread_create(&sendBufferThread, NULL, sendBuffer, NULL);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(audioSocket.receive(&agentAddress, packetData, &receivedBytes)) {
|
if(audioSocket.receive((sockaddr *)&agentAddress, packetData, &receivedBytes)) {
|
||||||
if (receivedBytes == BUFFER_LENGTH_BYTES) {
|
if (receivedBytes == BUFFER_LENGTH_BYTES) {
|
||||||
if (addAgent(&agentAddress, packetData)) {
|
if (addAgent(&agentAddress, packetData)) {
|
||||||
std::cout << "Added agent: " <<
|
std::cout << "Added agent: " <<
|
||||||
|
|
Loading…
Reference in a new issue