Top |
Functions
Functions
ags_osc_buffer_util_put_int32 ()
void ags_osc_buffer_util_put_int32 (unsigned
,char *buffer);
gint32 val
Put val
in buffer
.
Since:
ags_osc_buffer_util_get_int32 ()
void ags_osc_buffer_util_get_int32 (unsigned
,char *buffer);
gint32 *val
Get val
from buffer
.
Since:
ags_osc_buffer_util_put_timetag ()
void ags_osc_buffer_util_put_timetag (unsigned
,char *buffer,
gint32 tv_secs,
gint32 tv_fraction);
gboolean immediately
Put timetag specified by tv_secs
, tv_fraction
and immediately
to buffer
.
Parameters
buffer |
the unsigned char buffer |
|
tv_secs |
number of seconds since midnight on January 1, 1900 |
|
tv_fraction |
fraction of seconds to a precision of about 200 picoseconds |
|
immediately |
if |
Since:
ags_osc_buffer_util_get_timetag ()
void ags_osc_buffer_util_get_timetag (unsigned
,char *buffer,
gint32 *tv_secs,
gint32 *tv_fraction);
gboolean *immediately
Get timetag specified by tv_secs
, tv_fraction
and immediately
from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
tv_secs |
return location of number of seconds since midnight on January 1, 1900 |
|
tv_fraction |
return location of fraction of seconds to a precision of about 200 picoseconds |
|
immediately |
return location of if |
Since:
ags_osc_buffer_util_put_float ()
void ags_osc_buffer_util_put_float (unsigned
,char *buffer);
gfloat val
Put val
to buffer
.
Since:
ags_osc_buffer_util_get_float ()
void ags_osc_buffer_util_get_float (unsigned
,char *buffer);
gfloat *val
Get val
from buffer
.
Since:
ags_osc_buffer_util_put_string ()
void ags_osc_buffer_util_put_string (unsigned
,char *buffer,
gchar *str);
gsize length
Put str
to buffer
.
Parameters
buffer |
the unsigned char buffer |
|
str |
the ASCII string |
|
length |
the length to write or -1 to write until null byte |
Since:
ags_osc_buffer_util_get_string ()
void ags_osc_buffer_util_get_string (unsigned
,char *buffer,
gchar **str);
gsize *length
Get str
from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
str |
the return location of ASCII string |
|
length |
the return location of bytes read |
Since:
ags_osc_buffer_util_put_blob ()
void ags_osc_buffer_util_put_blob (unsigned
,char *buffer,
gint32 data_sizeunsigned
);char *data
Put data
to buffer
.
Since:
ags_osc_buffer_util_get_blob ()
void ags_osc_buffer_util_get_blob (unsigned
,char *buffer,
gint32 *data_sizeunsigned
);char **data
Get data
from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
data_size |
the return location of blob's data size |
|
data |
the return location of blob's data |
Since:
ags_osc_buffer_util_put_int64 ()
void ags_osc_buffer_util_put_int64 (unsigned
,char *buffer);
gint64 val
Put val
to buffer
.
Since:
ags_osc_buffer_util_get_int64 ()
void ags_osc_buffer_util_get_int64 (unsigned
,char *buffer);
gint64 *val
Get val
from buffer
.
Since:
ags_osc_buffer_util_put_double ()
void ags_osc_buffer_util_put_double (unsigned
,char *buffer);
gdouble val
Put val
to buffer
.
Since:
ags_osc_buffer_util_get_double ()
void ags_osc_buffer_util_get_double (unsigned
,char *buffer);
gdouble *val
Get val
from buffer
.
Since:
ags_osc_buffer_util_put_char ()
void ags_osc_buffer_util_put_char (unsigned
,char *buffer);
gchar val
Put val
to buffer
.
Since:
ags_osc_buffer_util_get_char ()
void ags_osc_buffer_util_get_char (unsigned
,char *buffer);
gchar *val
Get val
from buffer
.
Since:
ags_osc_buffer_util_put_rgba ()
void ags_osc_buffer_util_put_rgba (unsigned
,char *buffer,
guint8 r,
guint8 g,
guint8 b);
guint8 a
Put RGBA color specified by r
, g
, b
and a
to buffer
.
Parameters
buffer |
the unsigned char buffer |
|
r |
the red value |
|
g |
the green value |
|
b |
the blue value |
|
a |
the alpha value |
Since:
ags_osc_buffer_util_get_rgba ()
void ags_osc_buffer_util_get_rgba (unsigned
,char *buffer,
guint8 *r,
guint8 *g,
guint8 *b);
guint8 *a
Get RGBA color specified by r
, g
, b
and a
from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
r |
the return location of red value |
|
g |
the return location of green value |
|
b |
the return location of blue value |
|
a |
the return location of alpha value |
Since:
ags_osc_buffer_util_put_midi ()
void ags_osc_buffer_util_put_midi (unsigned
,char *buffer,
guint8 port,
guint8 status_byte,
guint8 data0);
guint8 data1
Put MIDI to buffer
.
Parameters
buffer |
the unsigned char buffer |
|
port |
the port |
|
status_byte |
the status byte |
|
data0 |
the first piece of data |
|
data1 |
the second piece of data |
Since:
ags_osc_buffer_util_get_midi ()
void ags_osc_buffer_util_get_midi (unsigned
,char *buffer,
guint8 *port,
guint8 *status_byte,
guint8 *data0);
guint8 *data1
Get MIDI from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
port |
the return location of port |
|
status_byte |
the return location of status byte |
|
data0 |
the return location of first piece of data |
|
data1 |
the return location of second piece of data |
Since:
ags_osc_buffer_util_put_packet ()
void ags_osc_buffer_util_put_packet (unsigned
,char *buffer,
gint32 packet_sizeunsigned
);char *packet
Put packet
to buffer
.
Since:
ags_osc_buffer_util_get_packet ()
void ags_osc_buffer_util_get_packet (unsigned
,char *buffer,
gint32 *packet_sizeunsigned
);char **packet
Get packet
from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
packet_size |
the return location of packet's size |
|
packet |
the return location of packet |
Since:
ags_osc_buffer_util_put_packets ()
void ags_osc_buffer_util_put_packets (unsigned
,char *buffer,
gint32 packet_size...
);
Put packets to buffer
.
Parameters
buffer |
the unsigned char buffer |
|
packet_size |
the packet size or -1 if no packet |
|
... |
the packets followed by packet size until it is -1 |
Since:
ags_osc_buffer_util_put_message ()
void ags_osc_buffer_util_put_message (unsigned
,char *buffer,
gchar *address_pattern);
gchar *type_tag
Put message heading to buffer
. Note you have to put following arguments
yourself.
Parameters
buffer |
the unsigned char buffer |
|
address_pattern |
the address pattern |
|
type_tag |
the type tag |
Since:
ags_osc_buffer_util_get_message ()
void ags_osc_buffer_util_get_message (unsigned
,char *buffer,
gchar **address_pattern);
gchar **type_tag
Get message heading from buffer
. Note you have to get following arguments
yourself.
Parameters
buffer |
the unsigned char buffer |
|
address_pattern |
return location of the address pattern |
|
type_tag |
return location of the type tag |
Since:
ags_osc_buffer_util_put_bundle ()
void ags_osc_buffer_util_put_bundle (unsigned
,char *buffer,
gint32 tv_secs,
gint32 tv_fraction);
gboolean immediately
Put bundle to buffer
.
Parameters
buffer |
the unsigned char buffer |
|
tv_secs |
number of seconds since midnight on January 1, 1900 |
|
tv_fraction |
fraction of seconds to a precision of about 200 picoseconds |
|
immediately |
if |
Since:
ags_osc_buffer_util_get_bundle ()
void ags_osc_buffer_util_get_bundle (unsigned
,char *buffer,
gint32 *tv_secs,
gint32 *tv_fraction);
gboolean *immediately
Get bundle from buffer
.
Parameters
buffer |
the unsigned char buffer |
|
tv_secs |
return location of number of seconds since midnight on January 1, 1900 |
|
tv_fraction |
return location of fraction of seconds to a precision of about 200 picoseconds |
|
immediately |
return location of if |
Since: