Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Files Functions Variables Typedefs Macros Groups
WriteFile_c.h
1 #ifdef __cplusplus
2 #include <WriteFile.h>
3 extern "C"
4 {
5 #else
6 typedef void* WriteFile;
7 typedef enum {
8  kBinary,
9  kText
10 } WriteFileType;
11 #endif
12 
13 WriteFile* WriteFile_new();
14 void WriteFile_delete(WriteFile* file);
15 void WriteFile_setFileType(WriteFile* file, WriteFileType newFileType);
16 void WriteFile_setEcho(WriteFile* file, int newEcho);
17 void WriteFile_setEchoInterval(WriteFile* file, int newPeriod);
18 void WriteFile_setBufferSize(WriteFile* file, unsigned int newSize);
19 void WriteFile_setFormat(WriteFile* file, const char* newFormat);
20 void WriteFile_setHeader(WriteFile* file, const char* newHeader);
21 void WriteFile_setFooter(WriteFile* file, const char* newFooter);
22 void WriteFile_logArray(WriteFile* file, const float* array, int length);
23 void WriteFile_log(WriteFile* file, float value);
24 void WriteFile_init(WriteFile* file, const char* filename, int length);
25 int WriteFile_getOffset(WriteFile* file);
26 float WriteFile_getBufferStatus(WriteFile* file);
27 
28 #ifdef __cplusplus
29 }
30 #endif
Definition: WriteFile.h:22