- 授权协议: ISC
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/mhroth/tinyosc
软件介绍
TinyOSC 是极其简单的 Open Sound Control (OSC) 库,使用 C 编写,常用示例是解析直接从一个 socket 接收的原生缓冲。
代码示例:
#include "tinyosc.h"
tosc_tinyosc osc; // declare the TinyOSC structure
char buffer[1024]; // declare a buffer into which to read the socket contents
int len = 0; // the number of bytes read from the socket
while ((len = READ_BYTES_FROM_SOCKET(buffer)) > 0) {
// parse the buffer contents (the raw OSC bytes)
// a return value of 0 indicates no error
if (!tosc_init(&osc, buffer, len)) {
printf("Received OSC message: [%i bytes] %s %s ",
len, // the number of bytes in the OSC message
osc.address, // the OSC address string, e.g. "/button1"
osc.format); // the OSC format string, e.g. "f"
for (int i = 0; osc.format[i] != '\0'; i++) {
switch (osc.format[i]) {
case 'f': printf("%g ", tosc_getNextFloat(&osc)); break;
case 'i': printf("%i ", tosc_getNextInt32(&osc)); break;
case 's': printf("%s ", tosc_getNextString(&osc)); break;
default: continue;
}
}
printf("\n");
}
}
自己动手做iOS App
张子怡 / 电子工业出版社 / 2017-8 / 69.00
《自己动手做iOS App:从设计开发到上架App Store》为想要接触iOS 应用设计、开发的读者提供了由浅入深的详细指导。从iOS 应用制作的步骤是什么,应该使用什么软件,如何发布应用到App Store,到iOS 的设计理念是什么,如何正确书写Swift 语言,再到后端和客户端是如何交互运作的等,本书配合图示,精辟、直观地阐明了iOS 应用制作中的种种疑问。 如果你是一位第一次接触i......一起来看看 《自己动手做iOS App》 这本书的介绍吧!
