Просмотр исходного кода

rlparser: update raylib_api.* by CI

pull/5541/head
github-actions[bot] 1 неделю назад
Родитель
Сommit
0388dc531d
4 измененных файлов: 245 добавлений и 25 удалений
  1. +106
    -5
      tools/rlparser/output/raylib_api.json
  2. +58
    -5
      tools/rlparser/output/raylib_api.lua
  3. +50
    -11
      tools/rlparser/output/raylib_api.txt
  4. +31
    -4
      tools/rlparser/output/raylib_api.xml

+ 106
- 5
tools/rlparser/output/raylib_api.json Просмотреть файл

@ -1154,11 +1154,6 @@
"name": "buffer", "name": "buffer",
"description": "Pointer to internal data used by the audio system" "description": "Pointer to internal data used by the audio system"
}, },
{
"type": "rAudioProcessor *",
"name": "processor",
"description": "Pointer to internal data processor, useful for audio effects"
},
{ {
"type": "unsigned int", "type": "unsigned int",
"name": "sampleRate", "name": "sampleRate",
@ -3153,6 +3148,25 @@
"name": "frames" "name": "frames"
} }
] ]
},
{
"name": "AudioCallbackEx",
"description": "",
"returnType": "void",
"params": [
{
"type": "void *",
"name": "bufferData"
},
{
"type": "unsigned int",
"name": "frames"
},
{
"type": "void *",
"name": "context"
}
]
} }
], ],
"functions": [ "functions": [
@ -12407,6 +12421,25 @@
} }
] ]
}, },
{
"name": "SetAudioStreamCallbackEx",
"description": "Audio thread callback to request new data (with context pointer)",
"returnType": "void",
"params": [
{
"type": "AudioStream",
"name": "stream"
},
{
"type": "AudioCallbackEx",
"name": "callback"
},
{
"type": "void *",
"name": "context"
}
]
},
{ {
"name": "AttachAudioStreamProcessor", "name": "AttachAudioStreamProcessor",
"description": "Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)", "description": "Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)",
@ -12437,6 +12470,44 @@
} }
] ]
}, },
{
"name": "AttachAudioStreamProcessorEx",
"description": "Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo) (with context pointer)",
"returnType": "void",
"params": [
{
"type": "AudioStream",
"name": "stream"
},
{
"type": "AudioCallbackEx",
"name": "processor"
},
{
"type": "void *",
"name": "context"
}
]
},
{
"name": "DetachAudioStreamProcessorEx",
"description": "Detach audio stream processor from stream (with context pointer)",
"returnType": "void",
"params": [
{
"type": "AudioStream",
"name": "stream"
},
{
"type": "AudioCallbackEx",
"name": "processor"
},
{
"type": "void *",
"name": "context"
}
]
},
{ {
"name": "AttachAudioMixedProcessor", "name": "AttachAudioMixedProcessor",
"description": "Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)", "description": "Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)",
@ -12458,6 +12529,36 @@
"name": "processor" "name": "processor"
} }
] ]
},
{
"name": "AttachAudioMixedProcessorEx",
"description": "Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) (with context pointer)",
"returnType": "void",
"params": [
{
"type": "AudioCallbackEx",
"name": "processor"
},
{
"type": "void *",
"name": "context"
}
]
},
{
"name": "DetachAudioMixedProcessorEx",
"description": "Detach audio stream processor from the entire audio pipeline (with context pointer)",
"returnType": "void",
"params": [
{
"type": "AudioCallbackEx",
"name": "processor"
},
{
"type": "void *",
"name": "context"
}
]
} }
] ]
} }

+ 58
- 5
tools/rlparser/output/raylib_api.lua Просмотреть файл

@ -1154,11 +1154,6 @@ return {
name = "buffer", name = "buffer",
description = "Pointer to internal data used by the audio system" description = "Pointer to internal data used by the audio system"
}, },
{
type = "rAudioProcessor *",
name = "processor",
description = "Pointer to internal data processor, useful for audio effects"
},
{ {
type = "unsigned int", type = "unsigned int",
name = "sampleRate", name = "sampleRate",
@ -3114,6 +3109,16 @@ return {
{type = "void *", name = "bufferData"}, {type = "void *", name = "bufferData"},
{type = "unsigned int", name = "frames"} {type = "unsigned int", name = "frames"}
} }
},
{
name = "AudioCallbackEx",
description = "",
returnType = "void",
params = {
{type = "void *", name = "bufferData"},
{type = "unsigned int", name = "frames"},
{type = "void *", name = "context"}
}
} }
}, },
functions = { functions = {
@ -8432,6 +8437,16 @@ return {
{type = "AudioCallback", name = "callback"} {type = "AudioCallback", name = "callback"}
} }
}, },
{
name = "SetAudioStreamCallbackEx",
description = "Audio thread callback to request new data (with context pointer)",
returnType = "void",
params = {
{type = "AudioStream", name = "stream"},
{type = "AudioCallbackEx", name = "callback"},
{type = "void *", name = "context"}
}
},
{ {
name = "AttachAudioStreamProcessor", name = "AttachAudioStreamProcessor",
description = "Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)", description = "Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)",
@ -8450,6 +8465,26 @@ return {
{type = "AudioCallback", name = "processor"} {type = "AudioCallback", name = "processor"}
} }
}, },
{
name = "AttachAudioStreamProcessorEx",
description = "Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo) (with context pointer)",
returnType = "void",
params = {
{type = "AudioStream", name = "stream"},
{type = "AudioCallbackEx", name = "processor"},
{type = "void *", name = "context"}
}
},
{
name = "DetachAudioStreamProcessorEx",
description = "Detach audio stream processor from stream (with context pointer)",
returnType = "void",
params = {
{type = "AudioStream", name = "stream"},
{type = "AudioCallbackEx", name = "processor"},
{type = "void *", name = "context"}
}
},
{ {
name = "AttachAudioMixedProcessor", name = "AttachAudioMixedProcessor",
description = "Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)", description = "Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)",
@ -8465,6 +8500,24 @@ return {
params = { params = {
{type = "AudioCallback", name = "processor"} {type = "AudioCallback", name = "processor"}
} }
},
{
name = "AttachAudioMixedProcessorEx",
description = "Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) (with context pointer)",
returnType = "void",
params = {
{type = "AudioCallbackEx", name = "processor"},
{type = "void *", name = "context"}
}
},
{
name = "DetachAudioMixedProcessorEx",
description = "Detach audio stream processor from the entire audio pipeline (with context pointer)",
returnType = "void",
params = {
{type = "AudioCallbackEx", name = "processor"},
{type = "void *", name = "context"}
}
} }
} }
} }

+ 50
- 11
tools/rlparser/output/raylib_api.txt Просмотреть файл

@ -496,14 +496,13 @@ Struct 26: Wave (5 fields)
Field[3]: unsigned int sampleSize // Bit depth (bits per sample): 8, 16, 32 (24 not supported) Field[3]: unsigned int sampleSize // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
Field[4]: unsigned int channels // Number of channels (1-mono, 2-stereo, ...) Field[4]: unsigned int channels // Number of channels (1-mono, 2-stereo, ...)
Field[5]: void * data // Buffer data pointer Field[5]: void * data // Buffer data pointer
Struct 27: AudioStream (5 fields)
Struct 27: AudioStream (4 fields)
Name: AudioStream Name: AudioStream
Description: AudioStream, custom audio stream Description: AudioStream, custom audio stream
Field[1]: rAudioBuffer * buffer // Pointer to internal data used by the audio system Field[1]: rAudioBuffer * buffer // Pointer to internal data used by the audio system
Field[2]: rAudioProcessor * processor // Pointer to internal data processor, useful for audio effects
Field[3]: unsigned int sampleRate // Frequency (samples per second)
Field[4]: unsigned int sampleSize // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
Field[5]: unsigned int channels // Number of channels (1-mono, 2-stereo, ...)
Field[2]: unsigned int sampleRate // Frequency (samples per second)
Field[3]: unsigned int sampleSize // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
Field[4]: unsigned int channels // Number of channels (1-mono, 2-stereo, ...)
Struct 28: Sound (2 fields) Struct 28: Sound (2 fields)
Name: Sound Name: Sound
Description: Sound Description: Sound
@ -952,7 +951,7 @@ Enum 21: NPatchLayout (3 values)
Value[NPATCH_THREE_PATCH_VERTICAL]: 1 Value[NPATCH_THREE_PATCH_VERTICAL]: 1
Value[NPATCH_THREE_PATCH_HORIZONTAL]: 2 Value[NPATCH_THREE_PATCH_HORIZONTAL]: 2
Callbacks found: 6
Callbacks found: 7
Callback 001: TraceLogCallback() (3 input parameters) Callback 001: TraceLogCallback() (3 input parameters)
Name: TraceLogCallback Name: TraceLogCallback
@ -991,8 +990,15 @@ Callback 006: AudioCallback() (2 input parameters)
Description: Description:
Param[1]: bufferData (type: void *) Param[1]: bufferData (type: void *)
Param[2]: frames (type: unsigned int) Param[2]: frames (type: unsigned int)
Callback 007: AudioCallbackEx() (3 input parameters)
Name: AudioCallbackEx
Return type: void
Description:
Param[1]: bufferData (type: void *)
Param[2]: frames (type: unsigned int)
Param[3]: context (type: void *)
Functions found: 599
Functions found: 604
Function 001: InitWindow() (3 input parameters) Function 001: InitWindow() (3 input parameters)
Name: InitWindow Name: InitWindow
@ -4767,25 +4773,58 @@ Function 595: SetAudioStreamCallback() (2 input parameters)
Description: Audio thread callback to request new data Description: Audio thread callback to request new data
Param[1]: stream (type: AudioStream) Param[1]: stream (type: AudioStream)
Param[2]: callback (type: AudioCallback) Param[2]: callback (type: AudioCallback)
Function 596: AttachAudioStreamProcessor() (2 input parameters)
Function 596: SetAudioStreamCallbackEx() (3 input parameters)
Name: SetAudioStreamCallbackEx
Return type: void
Description: Audio thread callback to request new data (with context pointer)
Param[1]: stream (type: AudioStream)
Param[2]: callback (type: AudioCallbackEx)
Param[3]: context (type: void *)
Function 597: AttachAudioStreamProcessor() (2 input parameters)
Name: AttachAudioStreamProcessor Name: AttachAudioStreamProcessor
Return type: void Return type: void
Description: Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo) Description: Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)
Param[1]: stream (type: AudioStream) Param[1]: stream (type: AudioStream)
Param[2]: processor (type: AudioCallback) Param[2]: processor (type: AudioCallback)
Function 597: DetachAudioStreamProcessor() (2 input parameters)
Function 598: DetachAudioStreamProcessor() (2 input parameters)
Name: DetachAudioStreamProcessor Name: DetachAudioStreamProcessor
Return type: void Return type: void
Description: Detach audio stream processor from stream Description: Detach audio stream processor from stream
Param[1]: stream (type: AudioStream) Param[1]: stream (type: AudioStream)
Param[2]: processor (type: AudioCallback) Param[2]: processor (type: AudioCallback)
Function 598: AttachAudioMixedProcessor() (1 input parameters)
Function 599: AttachAudioStreamProcessorEx() (3 input parameters)
Name: AttachAudioStreamProcessorEx
Return type: void
Description: Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo) (with context pointer)
Param[1]: stream (type: AudioStream)
Param[2]: processor (type: AudioCallbackEx)
Param[3]: context (type: void *)
Function 600: DetachAudioStreamProcessorEx() (3 input parameters)
Name: DetachAudioStreamProcessorEx
Return type: void
Description: Detach audio stream processor from stream (with context pointer)
Param[1]: stream (type: AudioStream)
Param[2]: processor (type: AudioCallbackEx)
Param[3]: context (type: void *)
Function 601: AttachAudioMixedProcessor() (1 input parameters)
Name: AttachAudioMixedProcessor Name: AttachAudioMixedProcessor
Return type: void Return type: void
Description: Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) Description: Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)
Param[1]: processor (type: AudioCallback) Param[1]: processor (type: AudioCallback)
Function 599: DetachAudioMixedProcessor() (1 input parameters)
Function 602: DetachAudioMixedProcessor() (1 input parameters)
Name: DetachAudioMixedProcessor Name: DetachAudioMixedProcessor
Return type: void Return type: void
Description: Detach audio stream processor from the entire audio pipeline Description: Detach audio stream processor from the entire audio pipeline
Param[1]: processor (type: AudioCallback) Param[1]: processor (type: AudioCallback)
Function 603: AttachAudioMixedProcessorEx() (2 input parameters)
Name: AttachAudioMixedProcessorEx
Return type: void
Description: Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) (with context pointer)
Param[1]: processor (type: AudioCallbackEx)
Param[2]: context (type: void *)
Function 604: DetachAudioMixedProcessorEx() (2 input parameters)
Name: DetachAudioMixedProcessorEx
Return type: void
Description: Detach audio stream processor from the entire audio pipeline (with context pointer)
Param[1]: processor (type: AudioCallbackEx)
Param[2]: context (type: void *)

+ 31
- 4
tools/rlparser/output/raylib_api.xml Просмотреть файл

@ -241,9 +241,8 @@
<Field type="unsigned int" name="channels" desc="Number of channels (1-mono, 2-stereo, ...)" /> <Field type="unsigned int" name="channels" desc="Number of channels (1-mono, 2-stereo, ...)" />
<Field type="void *" name="data" desc="Buffer data pointer" /> <Field type="void *" name="data" desc="Buffer data pointer" />
</Struct> </Struct>
<Struct name="AudioStream" fieldCount="5" desc="AudioStream, custom audio stream">
<Struct name="AudioStream" fieldCount="4" desc="AudioStream, custom audio stream">
<Field type="rAudioBuffer *" name="buffer" desc="Pointer to internal data used by the audio system" /> <Field type="rAudioBuffer *" name="buffer" desc="Pointer to internal data used by the audio system" />
<Field type="rAudioProcessor *" name="processor" desc="Pointer to internal data processor, useful for audio effects" />
<Field type="unsigned int" name="sampleRate" desc="Frequency (samples per second)" /> <Field type="unsigned int" name="sampleRate" desc="Frequency (samples per second)" />
<Field type="unsigned int" name="sampleSize" desc="Bit depth (bits per sample): 8, 16, 32 (24 not supported)" /> <Field type="unsigned int" name="sampleSize" desc="Bit depth (bits per sample): 8, 16, 32 (24 not supported)" />
<Field type="unsigned int" name="channels" desc="Number of channels (1-mono, 2-stereo, ...)" /> <Field type="unsigned int" name="channels" desc="Number of channels (1-mono, 2-stereo, ...)" />
@ -651,7 +650,7 @@
<Value name="NPATCH_THREE_PATCH_HORIZONTAL" integer="2" desc="Npatch layout: 3x1 tiles" /> <Value name="NPATCH_THREE_PATCH_HORIZONTAL" integer="2" desc="Npatch layout: 3x1 tiles" />
</Enum> </Enum>
</Enums> </Enums>
<Callbacks count="6">
<Callbacks count="7">
<Callback name="TraceLogCallback" retType="void" paramCount="3" desc="Logging: Redirect trace log messages"> <Callback name="TraceLogCallback" retType="void" paramCount="3" desc="Logging: Redirect trace log messages">
<Param type="int" name="logLevel" desc="" /> <Param type="int" name="logLevel" desc="" />
<Param type="const char *" name="text" desc="" /> <Param type="const char *" name="text" desc="" />
@ -677,8 +676,13 @@
<Param type="void *" name="bufferData" desc="" /> <Param type="void *" name="bufferData" desc="" />
<Param type="unsigned int" name="frames" desc="" /> <Param type="unsigned int" name="frames" desc="" />
</Callback> </Callback>
<Callback name="AudioCallbackEx" retType="void" paramCount="3" desc="">
<Param type="void *" name="bufferData" desc="" />
<Param type="unsigned int" name="frames" desc="" />
<Param type="void *" name="context" desc="" />
</Callback>
</Callbacks> </Callbacks>
<Functions count="599">
<Functions count="604">
<Function name="InitWindow" retType="void" paramCount="3" desc="Initialize window and OpenGL context"> <Function name="InitWindow" retType="void" paramCount="3" desc="Initialize window and OpenGL context">
<Param type="int" name="width" desc="" /> <Param type="int" name="width" desc="" />
<Param type="int" name="height" desc="" /> <Param type="int" name="height" desc="" />
@ -3181,6 +3185,11 @@
<Param type="AudioStream" name="stream" desc="" /> <Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallback" name="callback" desc="" /> <Param type="AudioCallback" name="callback" desc="" />
</Function> </Function>
<Function name="SetAudioStreamCallbackEx" retType="void" paramCount="3" desc="Audio thread callback to request new data (with context pointer)">
<Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallbackEx" name="callback" desc="" />
<Param type="void *" name="context" desc="" />
</Function>
<Function name="AttachAudioStreamProcessor" retType="void" paramCount="2" desc="Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)"> <Function name="AttachAudioStreamProcessor" retType="void" paramCount="2" desc="Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo)">
<Param type="AudioStream" name="stream" desc="" /> <Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallback" name="processor" desc="" /> <Param type="AudioCallback" name="processor" desc="" />
@ -3189,11 +3198,29 @@
<Param type="AudioStream" name="stream" desc="" /> <Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallback" name="processor" desc="" /> <Param type="AudioCallback" name="processor" desc="" />
</Function> </Function>
<Function name="AttachAudioStreamProcessorEx" retType="void" paramCount="3" desc="Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo) (with context pointer)">
<Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallbackEx" name="processor" desc="" />
<Param type="void *" name="context" desc="" />
</Function>
<Function name="DetachAudioStreamProcessorEx" retType="void" paramCount="3" desc="Detach audio stream processor from stream (with context pointer)">
<Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallbackEx" name="processor" desc="" />
<Param type="void *" name="context" desc="" />
</Function>
<Function name="AttachAudioMixedProcessor" retType="void" paramCount="1" desc="Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)"> <Function name="AttachAudioMixedProcessor" retType="void" paramCount="1" desc="Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo)">
<Param type="AudioCallback" name="processor" desc="" /> <Param type="AudioCallback" name="processor" desc="" />
</Function> </Function>
<Function name="DetachAudioMixedProcessor" retType="void" paramCount="1" desc="Detach audio stream processor from the entire audio pipeline"> <Function name="DetachAudioMixedProcessor" retType="void" paramCount="1" desc="Detach audio stream processor from the entire audio pipeline">
<Param type="AudioCallback" name="processor" desc="" /> <Param type="AudioCallback" name="processor" desc="" />
</Function> </Function>
<Function name="AttachAudioMixedProcessorEx" retType="void" paramCount="2" desc="Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) (with context pointer)">
<Param type="AudioCallbackEx" name="processor" desc="" />
<Param type="void *" name="context" desc="" />
</Function>
<Function name="DetachAudioMixedProcessorEx" retType="void" paramCount="2" desc="Detach audio stream processor from the entire audio pipeline (with context pointer)">
<Param type="AudioCallbackEx" name="processor" desc="" />
<Param type="void *" name="context" desc="" />
</Function>
</Functions> </Functions>
</raylibAPI> </raylibAPI>

Загрузка…
Отмена
Сохранить