Selaa lähdekoodia

Wrapped love.audio.resume.

rude 16 vuotta sitten
vanhempi
commit
c1ed4372d9
2 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 8 0
      src/modules/audio/wrap_Audio.cpp
  2. 1 0
      src/modules/audio/wrap_Audio.h

+ 8 - 0
src/modules/audio/wrap_Audio.cpp

@@ -115,6 +115,13 @@ namespace audio
 		return 0;
 	}
 
+	int _wrap_resume(lua_State * L)
+	{
+		Source * c = luax_checksource(L, 1);
+		instance->resume(c);
+		return 0;
+	}
+
 	int _wrap_rewind(lua_State * L)
 	{
 		Source * c = luax_checksource(L, 1);
@@ -144,6 +151,7 @@ namespace audio
 		{ "play",  _wrap_play },
 		{ "stop",  _wrap_stop },
 		{ "pause",  _wrap_pause },
+		{ "resume",  _wrap_resume },
 		{ "rewind",  _wrap_rewind },
 		{ "setVolume",  _wrap_setVolume },
 		{ "getVolume",  _wrap_getVolume },

+ 1 - 0
src/modules/audio/wrap_Audio.h

@@ -38,6 +38,7 @@ namespace audio
 	int _wrap_play(lua_State * L);
 	int _wrap_stop(lua_State * L);
 	int _wrap_pause(lua_State * L);
+	int _wrap_resume(lua_State * L);
 	int _wrap_rewind(lua_State * L);
 	int _wrap_setVolume(lua_State * L);
 	int _wrap_getVolume(lua_State * L);