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