| | |
| | | #include <osc/OscOutboundPacketStream.h> |
| | | #include <sstream> |
| | | #include <signal.h> |
| | | #include <chrono> |
| | | #include <thread> |
| | | |
| | | using namespace clipp; using std::cout; using std::string; |
| | | |
| | |
| | | } |
| | | transmitSocket->Send( p.Data(), p.Size() ); |
| | | } |
| | | usleep(pollPeriod); |
| | | // usleep(8000); |
| | | std::this_thread::sleep_for(std::chrono::milliseconds(pollPeriod)); |
| | | } |
| | | |
| | | g4_close_tracker(); |
| | |
| | | cout << make_man_page(cli, argv[0]); |
| | | return 1; |
| | | } |
| | | pollPeriod = pollPeriod*1000; |
| | | transmitSocket = std::make_unique<UdpTransmitSocket>( IpEndpointName( oscSinkAddr.c_str(), oscSinkPort ) ); |
| | | memset(rs.viewTrans,0,sizeof(float)*3); |
| | | rs.srcScale=rs.senScale=0.5; |