It has been a while since I wrote ANSI-C, so I hope someone can help me. I want to build an oscdump that instead of just displaying/printf-ing the values returns the values in a struct which I can than either insert in a database or allows me to do calculations with. So for example take the average value of the four alpha/beta/etc channels and detect significant changes in either frequency band or creating sessions and seeing average power per band and such.
I looked at the source of oscdump.c but it just calls this function: [TABLE=“class: memberdecls, height: 22”]
[TD=“class: memItemLeft, bgcolor: #F9FAFC, align: right”]int [/TD]
[TD=“class: memItemRight, bgcolor: #F9FAFC”]lo_server_recv (lo_server s)[/TD]
Which is a bit useless because the int it returns are just the amount of bytes. And by going into the code of the function it didn’t become much clearer where the “printf” is being done so that I can add a variable with those value.
Does any one have an idea how I can find this? The API wasnt very helpful on this yet.