Edit Naming To Be Consistent

This commit is contained in:
ThePlayerRolo 2025-07-10 14:13:44 -04:00
parent ca6a3d1148
commit a5dad2204c
6 changed files with 14 additions and 14 deletions

View file

@ -10181,8 +10181,8 @@ function audio_sample_play(audio, position, volume)
end end
--- @return integer --- @return integer
--- Allocates an `audio` sequence --- Allocates an `audio` sequence ID
function allocate_seq() function allocate_sequence()
-- ... -- ...
end end

View file

@ -1458,13 +1458,13 @@ Plays an `audio` sample at `position` with `volume`
<br /> <br />
## [allocate_seq](#allocate_seq) ## [allocate_sequence](#allocate_sequence)
### Description ### Description
Allocates an `audio` sequence Allocates an `audio` sequence ID
### Lua Example ### Lua Example
`local integerValue = allocate_seq()` `local integerValue = allocate_sequence()`
### Parameters ### Parameters
- None - None
@ -1473,7 +1473,7 @@ Allocates an `audio` sequence
- `integer` - `integer`
### C Prototype ### C Prototype
`u32 allocate_seq(void);` `u32 allocate_sequence(void);`
[:arrow_up_small:](#) [:arrow_up_small:](#)

View file

@ -1824,7 +1824,7 @@
- [audio_sample_destroy](functions-6.md#audio_sample_destroy) - [audio_sample_destroy](functions-6.md#audio_sample_destroy)
- [audio_sample_stop](functions-6.md#audio_sample_stop) - [audio_sample_stop](functions-6.md#audio_sample_stop)
- [audio_sample_play](functions-6.md#audio_sample_play) - [audio_sample_play](functions-6.md#audio_sample_play)
- [allocate_seq](functions-6.md#allocate_seq) - [allocate_sequence](functions-6.md#allocate_sequence)
<br /> <br />

View file

@ -30759,17 +30759,17 @@ int smlua_func_audio_sample_play(lua_State* L) {
return 1; return 1;
} }
int smlua_func_allocate_seq(UNUSED lua_State* L) { int smlua_func_allocate_sequence(UNUSED lua_State* L) {
if (L == NULL) { return 0; } if (L == NULL) { return 0; }
int top = lua_gettop(L); int top = lua_gettop(L);
if (top != 0) { if (top != 0) {
LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "allocate_seq", 0, top); LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "allocate_sequence", 0, top);
return 0; return 0;
} }
lua_pushinteger(L, allocate_seq()); lua_pushinteger(L, allocate_sequence());
return 1; return 1;
} }
@ -38053,7 +38053,7 @@ void smlua_bind_functions_autogen(void) {
smlua_bind_function(L, "audio_sample_destroy", smlua_func_audio_sample_destroy); smlua_bind_function(L, "audio_sample_destroy", smlua_func_audio_sample_destroy);
smlua_bind_function(L, "audio_sample_stop", smlua_func_audio_sample_stop); smlua_bind_function(L, "audio_sample_stop", smlua_func_audio_sample_stop);
smlua_bind_function(L, "audio_sample_play", smlua_func_audio_sample_play); smlua_bind_function(L, "audio_sample_play", smlua_func_audio_sample_play);
smlua_bind_function(L, "allocate_seq", smlua_func_allocate_seq); smlua_bind_function(L, "allocate_sequence", smlua_func_allocate_sequence);
// smlua_camera_utils.h // smlua_camera_utils.h
smlua_bind_function(L, "camera_reset_overrides", smlua_func_camera_reset_overrides); smlua_bind_function(L, "camera_reset_overrides", smlua_func_camera_reset_overrides);

View file

@ -626,7 +626,7 @@ void smlua_audio_custom_deinit(void) {
} }
u32 allocate_seq() { u32 allocate_sequence() {
if ((sCustomSeqsCount + SEQ_COUNT) < MAX_CUSTOM_SEQS) { if ((sCustomSeqsCount + SEQ_COUNT) < MAX_CUSTOM_SEQS) {
return (++sCustomSeqsCount + SEQ_COUNT); return (++sCustomSeqsCount + SEQ_COUNT);
} }

View file

@ -76,7 +76,7 @@ void audio_custom_update_volume(void);
void audio_custom_shutdown(void); void audio_custom_shutdown(void);
void smlua_audio_custom_deinit(void); void smlua_audio_custom_deinit(void);
/* |description|Allocates an `audio` sequence|descriptionEnd| */ /* |description|Allocates an `audio` sequence ID|descriptionEnd| */
u32 allocate_seq(void); u32 allocate_sequence(void);
#endif #endif