@@ -6,202 +6,202 @@ cdef extern from "gorilla/ga.h":
6
6
int32 in_major, int32 in_minor, int32 in_rev
7
7
)
8
8
9
- cdef int32 format_sample " ga_format_sampleSize" (ga_Format * in_format)
9
+ cdef int32 format_sample " ga_format_sampleSize" (Format * in_format)
10
10
11
11
cdef float32 format_toSeconds " ga_format_toSeconds" (
12
- ga_Format * in_format, int32 in_samples
12
+ Format * in_format, int32 in_samples
13
13
)
14
14
15
15
cdef int32 format_toSamples " ga_format_toSamples" (
16
- ga_Format * in_format, float32 in_seconds
16
+ Format * in_format, float32 in_seconds
17
17
)
18
18
19
- cdef ga_Device * device_open " ga_device_open" (
19
+ cdef Device * device_open " ga_device_open" (
20
20
int32 in_type,
21
21
int32 in_numBuffers,
22
22
int32 in_numSamples,
23
- ga_Format * in_format
23
+ Format * in_format
24
24
)
25
25
26
- cdef int32 device_check " ga_device_check" (ga_Device * in_device)
27
- cdef result device_queue " ga_device_queue" (ga_Device * in_device, void * in_buffer)
28
- cdef result device_close " ga_device_close" (ga_Device * in_device)
26
+ cdef int32 device_check " ga_device_check" (Device * in_device)
27
+ cdef result device_queue " ga_device_queue" (Device * in_device, void * in_buffer)
28
+ cdef result device_close " ga_device_close" (Device * in_device)
29
29
30
30
cdef int32 data_source_read " ga_data_source_read" (
31
- ga_DataSource * in_dataSrc,
31
+ DataSource * in_dataSrc,
32
32
void * in_dst,
33
33
int32 in_size,
34
34
int32 in_count
35
35
)
36
36
37
37
cdef int32 data_source_seek " ga_data_source_seek" (
38
- ga_DataSource * in_dataSrc,
38
+ DataSource * in_dataSrc,
39
39
int32 in_offset,
40
40
int32 in_origin
41
41
)
42
42
43
- cdef int32 data_source_tell " ga_data_source_tell" (ga_DataSource * in_dataSrc)
44
- cdef int32 data_source_flags " ga_data_source_flags" (ga_DataSource * in_dataSrc)
45
- cdef void data_source_acquire " ga_data_source_acquire" (ga_DataSource * in_dataSrc)
46
- cdef void data_source_release " ga_data_source_release" (ga_DataSource * in_dataSrc)
43
+ cdef int32 data_source_tell " ga_data_source_tell" (DataSource * in_dataSrc)
44
+ cdef int32 data_source_flags " ga_data_source_flags" (DataSource * in_dataSrc)
45
+ cdef void data_source_acquire " ga_data_source_acquire" (DataSource * in_dataSrc)
46
+ cdef void data_source_release " ga_data_source_release" (DataSource * in_dataSrc)
47
47
48
48
cdef int32 sample_source_read " ga_sample_source_read" (
49
- ga_SampleSource * in_sampleSrc,
49
+ SampleSource * in_sampleSrc,
50
50
void * in_dst,
51
51
int32 in_numSamples,
52
52
tOnSeekFunc in_onSeekFunc,
53
53
void * in_seekContext
54
54
)
55
55
56
- cdef int32 sample_source_end " ga_sample_source_end" (ga_SampleSource * in_sampleSrc)
56
+ cdef int32 sample_source_end " ga_sample_source_end" (SampleSource * in_sampleSrc)
57
57
cdef int32 sample_source_ready " ga_sample_source_ready" (
58
- ga_SampleSource * in_sampleSrc,
58
+ SampleSource * in_sampleSrc,
59
59
int32 in_numSamples
60
60
)
61
61
62
62
cdef int32 sample_source_seek " ga_sample_source_seek" (
63
- ga_SampleSource * in_sampleSrc,
63
+ SampleSource * in_sampleSrc,
64
64
int32 in_sampleOffset
65
65
)
66
66
67
67
cdef int32 sample_source_tell " ga_sample_source_tell" (
68
- ga_SampleSource * in_sampleSrc,
68
+ SampleSource * in_sampleSrc,
69
69
int32* out_totalSamples
70
70
)
71
71
72
- cdef int32 sample_source_flags " ga_sample_source_flags" (ga_SampleSource * in_sampleSrc)
72
+ cdef int32 sample_source_flags " ga_sample_source_flags" (SampleSource * in_sampleSrc)
73
73
cdef void sample_source_format " ga_sample_source_format" (
74
- ga_SampleSource * in_sampleSrc,
75
- ga_Format * out_format
74
+ SampleSource * in_sampleSrc,
75
+ Format * out_format
76
76
)
77
77
78
- cdef void sample_source_acquire " ga_sample_source_acquire" (ga_SampleSource * in_sampleSrc)
79
- cdef void sample_source_release " ga_sample_source_release" (ga_SampleSource * in_sampleSrc)
78
+ cdef void sample_source_acquire " ga_sample_source_acquire" (SampleSource * in_sampleSrc)
79
+ cdef void sample_source_release " ga_sample_source_release" (SampleSource * in_sampleSrc)
80
80
81
- cdef ga_Memory * memory_create " ga_memory_create" (void * in_data, int32 in_size)
82
- cdef ga_Memory * memory_create_data_source " ga_memory_create_data_source" (ga_DataSource * in_dataSource)
83
- cdef int32 memory_size " ga_memory_size" (ga_Memory * in_mem)
81
+ cdef Memory * memory_create " ga_memory_create" (void * in_data, int32 in_size)
82
+ cdef Memory * memory_create_data_source " ga_memory_create_data_source" (DataSource * in_dataSource)
83
+ cdef int32 memory_size " ga_memory_size" (Memory * in_mem)
84
84
85
- cdef void * memory_data " ga_memory_data" (ga_Memory * in_mem)
85
+ cdef void * memory_data " ga_memory_data" (Memory * in_mem)
86
86
87
- cdef void memory_acquire " ga_memory_acquire" (ga_Memory * in_mem)
88
- cdef void memory_release " ga_memory_release" (ga_Memory * in_mem)
87
+ cdef void memory_acquire " ga_memory_acquire" (Memory * in_mem)
88
+ cdef void memory_release " ga_memory_release" (Memory * in_mem)
89
89
90
- cdef ga_Sound * sound_create " ga_sound_create" (ga_Memory * in_memory, ga_Format * in_format)
91
- cdef ga_Sound * sound_create_sample_source " ga_sound_create_sample_source" (ga_SampleSource * in_sampleSrc)
92
- cdef void * sound_data " ga_sound_data" (ga_Sound * in_sound)
93
- cdef int32 sound_size " ga_sound_size" (ga_Sound * in_sound)
90
+ cdef Sound * sound_create " ga_sound_create" (Memory * in_memory, Format * in_format)
91
+ cdef Sound * sound_create_sample_source " ga_sound_create_sample_source" (SampleSource * in_sampleSrc)
92
+ cdef void * sound_data " ga_sound_data" (Sound * in_sound)
93
+ cdef int32 sound_size " ga_sound_size" (Sound * in_sound)
94
94
95
- cdef int32 sound_numSamples " ga_sound_numSamples" (ga_Sound * in_sound)
96
- cdef void sound_format " ga_sound_format" (ga_Sound * in_sound, ga_Format * out_format)
97
- cdef void sound_acquire " ga_sound_acquire" (ga_Sound * in_sound)
98
- cdef void sound_release " ga_sound_release" (ga_Sound * in_sound)
95
+ cdef int32 sound_numSamples " ga_sound_numSamples" (Sound * in_sound)
96
+ cdef void sound_format " ga_sound_format" (Sound * in_sound, Format * out_format)
97
+ cdef void sound_acquire " ga_sound_acquire" (Sound * in_sound)
98
+ cdef void sound_release " ga_sound_release" (Sound * in_sound)
99
99
100
- cdef ga_Mixer * mixer_create " ga_mixer_create" (ga_Format * in_format, int32 in_numSamples)
101
- cdef ga_Format * mixer_format " ga_mixer_format" (ga_Mixer * in_mixer)
102
- cdef int32 mixer_numSamples " ga_mixer_numSamples" (ga_Mixer * in_mixer)
103
- cdef result mixer_mix " ga_mixer_mix" (ga_Mixer * in_mixer, void * out_buffer)
100
+ cdef Mixer * mixer_create " ga_mixer_create" (Format * in_format, int32 in_numSamples)
101
+ cdef Format * mixer_format " ga_mixer_format" (Mixer * in_mixer)
102
+ cdef int32 mixer_numSamples " ga_mixer_numSamples" (Mixer * in_mixer)
103
+ cdef result mixer_mix " ga_mixer_mix" (Mixer * in_mixer, void * out_buffer)
104
104
105
- cdef result mixer_dispatch " ga_mixer_dispatch" (ga_Mixer * in_mixer)
106
- cdef result mixer_destroy " ga_mixer_destroy" (ga_Mixer * in_mixer)
105
+ cdef result mixer_dispatch " ga_mixer_dispatch" (Mixer * in_mixer)
106
+ cdef result mixer_destroy " ga_mixer_destroy" (Mixer * in_mixer)
107
107
108
108
109
- cdef ga_Handle * handle_create " ga_handle_create" (ga_Mixer * in_mixer, ga_SampleSource * in_sampleSrc)
110
- cdef result handle_destroy " ga_handle_destroy" (ga_Handle * in_handle)
111
- cdef result handle_play " ga_handle_play" (ga_Handle * in_handle)
112
- cdef result handle_stop " ga_handle_stop" (ga_Handle * in_handle)
109
+ cdef Handle * handle_create " ga_handle_create" (Mixer * in_mixer, SampleSource * in_sampleSrc)
110
+ cdef result handle_destroy " ga_handle_destroy" (Handle * in_handle)
111
+ cdef result handle_play " ga_handle_play" (Handle * in_handle)
112
+ cdef result handle_stop " ga_handle_stop" (Handle * in_handle)
113
113
114
- cdef int32 handle_playing " ga_handle_playing" (ga_Handle * in_handle)
115
- cdef int32 handle_stopped " ga_handle_stopped" (ga_Handle * in_handle)
116
- cdef int32 handle_finished " ga_handle_finished" (ga_Handle * in_handle)
117
- cdef int32 handle_destroyed " ga_handle_destroyed" (ga_Handle * in_handle)
114
+ cdef int32 handle_playing " ga_handle_playing" (Handle * in_handle)
115
+ cdef int32 handle_stopped " ga_handle_stopped" (Handle * in_handle)
116
+ cdef int32 handle_finished " ga_handle_finished" (Handle * in_handle)
117
+ cdef int32 handle_destroyed " ga_handle_destroyed" (Handle * in_handle)
118
118
119
119
cdef result handle_setCallback " ga_handle_setCallback" (
120
- ga_Handle * in_handle,
121
- ga_FinishCallback in_callback,
120
+ Handle * in_handle,
121
+ FinishCallback in_callback,
122
122
void * in_context
123
123
)
124
124
125
125
cdef result handle_setParamf " ga_handle_setParamf" (
126
- ga_Handle * in_handle,
126
+ Handle * in_handle,
127
127
int32 in_param,
128
128
float32 in_value
129
129
)
130
130
131
131
cdef result handle_getParamf " ga_handle_getParamf" (
132
- ga_Handle * in_handle,
132
+ Handle * in_handle,
133
133
int32 in_param,
134
134
float32* out_value
135
135
)
136
136
137
137
cdef result handle_setParami " ga_handle_setParami" (
138
- ga_Handle * in_handle,
138
+ Handle * in_handle,
139
139
int32 in_param,
140
140
int32 in_value
141
141
)
142
142
143
143
cdef result handle_getParami " ga_handle_getParami" (
144
- ga_Handle * in_handle,
144
+ Handle * in_handle,
145
145
int32 in_param,
146
146
int32* out_value
147
147
)
148
148
149
149
cdef result handle_seek " ga_handle_seek" (
150
- ga_Handle * in_handle,
150
+ Handle * in_handle,
151
151
int32 in_sampleOffset
152
152
)
153
153
154
154
cdef int32 handle_tell " ga_handle_tell" (
155
- ga_Handle * in_handle,
155
+ Handle * in_handle,
156
156
int32 in_param
157
157
)
158
158
159
159
cdef int32 handle_ready " ga_handle_ready" (
160
- ga_Handle * in_handle,
160
+ Handle * in_handle,
161
161
int32 in_numSamples
162
162
)
163
163
164
164
cdef void handle_format " ga_handle_format" (
165
- ga_Handle * in_handle,
166
- ga_Format * out_format
165
+ Handle * in_handle,
166
+ Format * out_format
167
167
)
168
168
169
- cdef ga_StreamManager * stream_manager_create " ga_stream_manager_create" ()
170
- cdef void stream_manager_buffer " ga_stream_manager_buffer" (ga_StreamManager * in_mgr)
171
- cdef void stream_manager_destroy " ga_stream_manager_destroy" (ga_StreamManager * in_mgr)
169
+ cdef StreamManager * stream_manager_create " ga_stream_manager_create" ()
170
+ cdef void stream_manager_buffer " ga_stream_manager_buffer" (StreamManager * in_mgr)
171
+ cdef void stream_manager_destroy " ga_stream_manager_destroy" (StreamManager * in_mgr)
172
172
173
- cdef ga_BufferedStream * stream_create " ga_stream_create" (
174
- ga_StreamManager * in_mgr,
175
- ga_SampleSource * in_sampleSrc,
173
+ cdef BufferedStream * stream_create " ga_stream_create" (
174
+ StreamManager * in_mgr,
175
+ SampleSource * in_sampleSrc,
176
176
int32 in_bufferSize
177
177
)
178
178
179
179
cdef void stream_produce " ga_stream_produce" (
180
- ga_BufferedStream * in_stream
180
+ BufferedStream * in_stream
181
181
)
182
182
cdef int32 stream_read " ga_stream_read" (
183
- ga_BufferedStream * in_stream,
183
+ BufferedStream * in_stream,
184
184
void * in_dst,
185
185
int32 in_numSamples
186
186
)
187
187
188
- cdef int32 stream_end " ga_stream_end" (ga_BufferedStream * in_stream)
188
+ cdef int32 stream_end " ga_stream_end" (BufferedStream * in_stream)
189
189
190
190
cdef int32 stream_ready " ga_stream_ready" (
191
- ga_BufferedStream * in_stream,
191
+ BufferedStream * in_stream,
192
192
int32 in_numSamples
193
193
)
194
194
195
195
cdef int32 stream_seek " ga_stream_seek" (
196
- ga_BufferedStream * in_stream,
196
+ BufferedStream * in_stream,
197
197
int32 in_sampleOffset
198
198
)
199
199
200
200
cdef int32 stream_tell " ga_stream_tell" (
201
- ga_BufferedStream * in_stream,
201
+ BufferedStream * in_stream,
202
202
int32* out_totalSamples
203
203
)
204
- cdef int32 stream_flags " ga_stream_flags" (ga_BufferedStream * in_stream)
204
+ cdef int32 stream_flags " ga_stream_flags" (BufferedStream * in_stream)
205
205
206
- cdef void stream_acquire " ga_stream_acquire" (ga_BufferedStream * in_stream)
207
- cdef void stream_release " ga_stream_release" (ga_BufferedStream * in_stream)
206
+ cdef void stream_acquire " ga_stream_acquire" (BufferedStream * in_stream)
207
+ cdef void stream_release " ga_stream_release" (BufferedStream * in_stream)
0 commit comments