-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform.h
49 lines (32 loc) · 987 Bytes
/
platform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#ifdef VSS_WINDOWS
#include <windows.h> // This has to be included before most other stuff.
#endif
#include <arpa/inet.h>
#ifdef VSS_IRIX
#ifdef VSS_IRIX_53
# include <unistd.h> // for sginap() or usleep()
# define usleep(_) sginap((long)(_/10000))
#endif
#else
#include <cmath>
static inline float fsqrt(float x) { return sqrt(x); }
#define flog10(_) log10(_)
#endif
#include "vssglobals.h"
void OpenOfile(const char*, int cbBuf);
void CloseOfile(const char*);
void VSS_SetGlobalAmplitude(float ampl);
float VSS_GetGlobalAmplitude();
void VSS_SetGear(int iGear);
void doActors();
void doActorsCleanup();
void deleteActors();
int Synth(int);
void Closesynth();
const float* VssInputBuffer();
void ParseArgs(int argc,char *argv[],int *udp_port, int *liveaudio,
float *sample_rate, int *nchansVSS, int *nchansIn, int *nchansOut, int *hog, int *lwm, int *hwm, char* ofile);
void schedulerMain();
int Scount();
void Msgsend(struct sockaddr_in*, const char*);