@@ -1398,8 +1398,8 @@ var LibrarySDL = {
13981398
13991399 SDL_WasInit__deps : [ 'SDL_Init' ] ,
14001400 SDL_WasInit__proxy : 'sync' ,
1401- SDL_WasInit__sig : 'i ' ,
1402- SDL_WasInit : function ( ) {
1401+ SDL_WasInit__sig : 'ii ' ,
1402+ SDL_WasInit : function ( flags ) {
14031403 if ( SDL . startTime === null ) {
14041404 _SDL_Init ( ) ;
14051405 }
@@ -1937,7 +1937,7 @@ var LibrarySDL = {
19371937 } ,
19381938
19391939 SDL_SetClipRect__proxy : 'sync' ,
1940- SDL_SetClipRect__sig : 'vii ' ,
1940+ SDL_SetClipRect__sig : 'iii ' ,
19411941 SDL_SetClipRect : function ( surf , rect ) {
19421942 var surfData = SDL . surfaces [ surf ] ;
19431943
@@ -2905,9 +2905,10 @@ var LibrarySDL = {
29052905 SDL . channelMinimumNumber = num ;
29062906 } ,
29072907 Mix_PlayChannelTimed__proxy : 'sync' ,
2908- Mix_PlayChannelTimed__sig : 'iiii ' ,
2909- Mix_PlayChannelTimed : function ( channel , id , loops ) {
2908+ Mix_PlayChannelTimed__sig : 'iiiii ' ,
2909+ Mix_PlayChannelTimed : function ( channel , id , loops , ticks ) {
29102910 // TODO: handle fixed amount of N loops. Currently loops either 0 or infinite times.
2911+ assert ( ticks == - 1 ) ;
29112912
29122913 // Get the audio element associated with the ID
29132914 var info = SDL . audios [ id ] ;
@@ -3459,8 +3460,8 @@ var LibrarySDL = {
34593460 SDL_DestroyRenderer : function ( renderer ) { } ,
34603461
34613462 SDL_GetWindowFlags__proxy : 'sync' ,
3462- SDL_GetWindowFlags__sig : 'iii ' ,
3463- SDL_GetWindowFlags : function ( x , y ) {
3463+ SDL_GetWindowFlags__sig : 'ip ' ,
3464+ SDL_GetWindowFlags : function ( window ) {
34643465 if ( Browser . isFullscreen ) {
34653466 return 1 ;
34663467 }
@@ -3475,8 +3476,8 @@ var LibrarySDL = {
34753476 SDL_GL_DeleteContext : function ( context ) { } ,
34763477
34773478 SDL_GL_GetSwapInterval__proxy : 'sync' ,
3478- SDL_GL_GetSwapInterval__sig : 'ii ' ,
3479- SDL_GL_GetSwapInterval : function ( state ) {
3479+ SDL_GL_GetSwapInterval__sig : 'i ' ,
3480+ SDL_GL_GetSwapInterval : function ( ) {
34803481 if ( Browser . mainLoop . timingMode == 1 /*EM_TIMING_RAF*/ ) return Browser . mainLoop . timingValue ;
34813482 else return 0 ;
34823483 } ,
@@ -3513,8 +3514,6 @@ var LibrarySDL = {
35133514 return 0 ;
35143515 } ,
35153516
3516- SDL_GetWindowFlags : function ( ) { } ,
3517-
35183517 SDL_ClearError : function ( ) { } ,
35193518
35203519 // TODO
0 commit comments