Update RingRayLib - raylib.c - Add Function : void UpdateAudioStream(AudioStream stream, const void *data, int samplesCount)
@@ -6872,6 +6872,26 @@ RING_FUNC(ring_InitAudioStream)
}
}
+
+RING_FUNC(ring_UpdateAudioStream)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ UpdateAudioStream(* (AudioStream *) RING_API_GETCPOINTER(1,"AudioStream"),(void *) RING_API_GETCPOINTER(2,"void"), (int ) RING_API_GETNUMBER(3));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"AudioStream"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -7264,4 +7284,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("getmusictimelength",ring_GetMusicTimeLength);
ring_vm_funcregister("getmusictimeplayed",ring_GetMusicTimePlayed);
ring_vm_funcregister("initaudiostream",ring_InitAudioStream);
+ ring_vm_funcregister("updateaudiostream",ring_UpdateAudioStream);
}
