-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpaudio_lib.i
77 lines (59 loc) · 1.76 KB
/
cpaudio_lib.i
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
%module cpaudio_lib
%inline %{
#include <cahal.h>
#include <cahal_wrapper.h>
#include <csignal.h>
#include <csignal_wrapper.h>
%}
%apply char { CHAR }
%apply char { INT8 }
%apply short { INT16 }
%apply int { INT32 }
%apply long long { INT64 }
%apply float { FLOAT32 }
%apply double { FLOAT64 }
%apply unsigned char { UCHAR }
%apply unsigned char { UINT8 }
%apply unsigned short { UINT16 }
%apply unsigned int { UINT32 }
%apply unsigned long long { UINT64 }
%apply unsigned int { USIZE }
%apply int { SIZE }
%apply char * { CHAR * }
%apply char * { INT8 * }
%apply short * { INT16 * }
%apply int * { INT32 * }
%apply long long * { INT64 * }
%apply float * { FLOAT32 * }
%apply double * { FLOAT64 * }
%apply unsigned char * { UCHAR * }
%apply unsigned char * { UINT8 * }
%apply unsigned short * { UINT16 * }
%apply unsigned int * { UINT32 * }
%apply unsigned long long * { UINT64 * }
%apply unsigned int { cahal_audio_format_id }
%apply unsigned int { cahal_audio_format_flag }
%apply unsigned char { CPC_BOOL }
%apply size_t * { SIZE * }
%include <cahal.h>
%include <cahal_audio_format_flags.h>
%include <cahal_audio_format_description.h>
%include <cahal_device.h>
%include <cahal_device_stream.h>
%include <types.h>
%include <cpcommon_error_codes.h>
%include <log_definitions.h>
%include <log_functions.h>
%include <csignal.h>
%include <wav.h>
%include <spreading_code.h>
%include <gold_code.h>
%include <csignal_error_codes.h>
%include <fir_filter.h>
%include <kaiser_filter.h>
%include <bit_packer.h>
%include <bit_stream.h>
%include <cpointer.i>
%pointer_functions( double, doubleP )
%include <cahal_wrapper.h>
%include <csignal_wrapper.h>