Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cf3bb79091
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (25 sloc) 0.671 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <lo/lo.h>
#include <time.h>

#define STRENGTH 64

int main(int argc, char *argv[]) {
    lo_address t = lo_address_new(NULL, "7771");
    int result;
    int i;
    struct timeval tv;
    gettimeofday(&tv, NULL);
    lo_send(t, "/play", "iis", tv.tv_sec, tv.tv_usec, "tabla/0");
    
    /* for(i = 0; i < STRENGTH; ++i) {
tv.tv_usec += 8000 + 100 * i;

while (tv.tv_usec > 1000000) {
tv.tv_usec -= 1000000;
tv.tv_sec++;
}
result = lo_send(t, "/play", "iis", tv.tv_sec, tv.tv_usec, "chin/0");
}
*/
    printf("result: %d\n", result);

    return(0);
}
Something went wrong with that request. Please try again.