Update RingRayLib - raylib.c - Add Function : void UpdateMusicStream(Music music)
@@ -6713,6 +6713,18 @@ RING_FUNC(ring_PlayMusicStream)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Music"));
}
+
+RING_FUNC(ring_UpdateMusicStream)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ UpdateMusicStream(* (Music *) RING_API_GETCPOINTER(1,"Music"));
+ 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);
@@ -7094,4 +7106,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("loadmusicstream",ring_LoadMusicStream);
ring_vm_funcregister("unloadmusicstream",ring_UnloadMusicStream);
ring_vm_funcregister("playmusicstream",ring_PlayMusicStream);
+ ring_vm_funcregister("updatemusicstream",ring_UpdateMusicStream);
}
