Update RingRayLib - raylib.c - Add Function : void PauseSound(Sound sound)
@@ -6513,6 +6513,18 @@ RING_FUNC(ring_PlaySound)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Sound"));
}
+
+RING_FUNC(ring_PauseSound)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ PauseSound(* (Sound *) RING_API_GETCPOINTER(1,"Sound"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Sound"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -6881,4 +6893,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("exportwave",ring_ExportWave);
ring_vm_funcregister("exportwaveascode",ring_ExportWaveAsCode);
ring_vm_funcregister("playsound",ring_PlaySound);
+ ring_vm_funcregister("pausesound",ring_PauseSound);
}
