diff options
| author | jussi | 2023-04-06 19:19:44 +0300 |
|---|---|---|
| committer | jussi | 2023-04-06 19:19:44 +0300 |
| commit | fe15e836bd87963d10bd301a3a24652763059e0d (patch) | |
| tree | a3bd6dbfcadfb3a5ba10a173d443da0595386d19 /src/audio.c | |
| parent | 2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a (diff) | |
| download | reilua-enhanced-fe15e836bd87963d10bd301a3a24652763059e0d.tar.gz reilua-enhanced-fe15e836bd87963d10bd301a3a24652763059e0d.tar.bz2 reilua-enhanced-fe15e836bd87963d10bd301a3a24652763059e0d.zip | |
Switched to Raylib vertion 4.5. Removed some functions and added others. Main changes to camera3D.
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/audio.c b/src/audio.c index 70c38e7..d62fcfd 100644 --- a/src/audio.c +++ b/src/audio.c @@ -398,56 +398,6 @@ int laudioResumeSound( lua_State *L ) { } /* -> 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 ) Check if a sound is currently playing |
