|
From: Thomas B. <to...@tr...> - 2021-03-01 18:38:45
|
On 2021-03-01 11:32, Fernando Carello wrote: > Hello Mark, thanks for replying. > > So I can simply access the fields of the "argv" union, based upon the > value of "type". Excellent. > > I looked at lo_osc_types.h as a reference. > It seems to me, that some types may have more than one corresponding > field. How to choose? > > Example 1: > I have type = LO_STRING, which is 's' > Should I read &argv[n]->S or &argv[n]->s ? > > Example 2: > I have type = LO_INT32, which is 'i' > Should I read argv[n]->i or argv[n]->i32 ? > > Same goes for 'f' (read from ->f or ->f32 ?) > > Thanks for the clarification > > Fernando > Hi Fernando in that case s and f are good to use. For a broad overview on all operations, the code in src/testlo.c has it all, a nice cheat-sheet. Ciao Thomas |