Update RingRayLib - raylib.c - Add Function : void SetMusicLoopCount(Music music, int count)
@@ -6805,6 +6805,22 @@ RING_FUNC(ring_SetMusicPitch)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Music"));
}
+
+RING_FUNC(ring_SetMusicLoopCount)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ SetMusicLoopCount(* (Music *) RING_API_GETCPOINTER(1,"Music"), (int ) RING_API_GETNUMBER(2));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Music"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -7193,4 +7209,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("ismusicplaying",ring_IsMusicPlaying);
ring_vm_funcregister("setmusicvolume",ring_SetMusicVolume);
ring_vm_funcregister("setmusicpitch",ring_SetMusicPitch);
+ ring_vm_funcregister("setmusicloopcount",ring_SetMusicLoopCount);
}
