Switched to Raylib vertion 4.5. Removed some functions and added others. Main changes to camera3D.
This commit is contained in:
50
src/audio.c
50
src/audio.c
@@ -397,56 +397,6 @@ int laudioResumeSound( lua_State *L ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> success = RL.PlaySoundMulti( Sound sound )
|
||||
|
||||
Play a sound ( Using multichannel buffer pool )
|
||||
|
||||
- Failure return false
|
||||
- Success return true
|
||||
*/
|
||||
int laudioPlaySoundMulti( lua_State *L ) {
|
||||
if ( !lua_isnumber( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.PlaySoundMulti( Sound sound )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
size_t soundId = lua_tointeger( L, -1 );
|
||||
|
||||
if ( !validSound( soundId ) ) {
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
PlaySoundMulti( *state->sounds[ soundId ] );
|
||||
lua_pushboolean( L, true );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> RL.StopSoundMulti()
|
||||
|
||||
Stop any sound playing ( using multichannel buffer pool )
|
||||
*/
|
||||
int laudioStopSoundMulti( lua_State *L ) {
|
||||
StopSoundMulti();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
> count = RL.GetSoundsPlaying()
|
||||
|
||||
Get number of sounds playing in the multichannel
|
||||
|
||||
- Success return int
|
||||
*/
|
||||
int laudioGetSoundsPlaying( lua_State *L ) {
|
||||
lua_pushinteger( L, GetSoundsPlaying() );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> playing = RL.IsSoundPlaying( Sound sound )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user