@@ 51,10 51,10 @@ def ctype_to_hare(ctype, unsigned = False, wrapping = False, pointer_array = Fal
if ctype[-1] == '*':
base = ctype_to_hare(ctype[:ctype.index('*')].strip(), unsigned = unsigned)
modifier = ctype[ctype.index('*'):]
- if pointer_array:
- modifier = modifier.replace('*', '*[*]')
if base == "void":
base = "opaque"
+ if pointer_array and base not in ["opaque", "rAudioProcessor", "rAudioBuffer"]:
+ modifier = modifier.replace('*', '*[*]')
return modifier + base
if ctype in types:
if type(types[ctype]) is str:
@@ 187,7 187,7 @@ export type Rectangle = struct {
// Image, pixel data stored in CPU memory (RAM)
export type Image = struct {
// Image raw data
- data: *[*]opaque,
+ data: *opaque,
// Image base width
width: int,
// Image base height
@@ 447,15 447,15 @@ export type Wave = struct {
// Number of channels (1-mono, 2-stereo, ...)
channels: uint,
// Buffer data pointer
- data: *[*]opaque,
+ data: *opaque,
};
// AudioStream, custom audio stream
export type AudioStream = struct {
// Pointer to internal data used by the audio system
- buffer: *[*]rAudioBuffer,
+ buffer: *rAudioBuffer,
// Pointer to internal data processor, useful for audio effects
- processor: *[*]rAudioProcessor,
+ processor: *rAudioProcessor,
// Frequency (samples per second)
sampleRate: uint,
// Bit depth (bits per sample): 8, 16, 32 (24 not supported)
@@ 483,7 483,7 @@ export type Music = struct {
// Type of music context (audio filetype)
ctxType: int,
// Audio context data, depends on type
- ctxData: *[*]opaque,
+ ctxData: *opaque,
};
// VrDeviceInfo, Head-Mounted-Display device parameters