#else
#include <unistd.h>
#include <pthread.h>
#include <algorithm>
#endif
#include "chuck_errmsg.h"
#include "digiio_rtaudio.h"
#include <stdio.h>
#include <climits>
// old
// #include "RtAudio.h"
// #include <iostream>
#include <string.h>
#include <time.h>
#include <float.h>
#include <vector>
#include <map>
using namespace std;
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#if defined(__MACOSX_CORE__)
/* XPM */
static char * add_xpm[] = {
static const char * add_xpm[] = {
"32 32 47 1",
" c None",
". c #C3F8BE",
static char * led_blue_xpm[] = {
static const char * led_blue_xpm[] = {
"28 28 431 2",
". c #949394",
static char * led_green_xpm[] = {
static const char * led_green_xpm[] = {
"28 28 443 2",
". c #959696",
static char * led_off_xpm[] = {
static const char * led_off_xpm[] = {
"28 28 143 2",
". c #959595",
static char * led_red_xpm[] = {
static const char * led_red_xpm[] = {
"28 28 434 2",
". c #959594",
static char * miniAudicle_xpm[] = {
static const char * miniAudicle_xpm[] = {
"128 128 1543 2",
". c #FF9D20",
static char * remove_xpm[] = {
static const char * remove_xpm[] = {
"32 32 177 2",
". c #FFB6B5",
static char * replace_xpm[] = {
static const char * replace_xpm[] = {
"32 32 114 2",
". c #5764FF",