On-the-fly rotation. Fixed angles.
[luagame.git] / funcs_sound.cpp
blob54f1892590d55b1dd39c5099fc2d1035e5d2001e
1 /*
2 Copyright (c)2006-2007 - Brett Lajzer
4 See LICENSE for license information.
5 */
7 #include "SoundEngine.h"
8 #include "lua.hpp"
9 #include "globals.h"
10 #include "funcs_sound.h"
12 //function to play a sample
13 int l_playsample(lua_State *L){
14 SoundEngine::play_sample(luaL_checkstring(L,1));
15 return 0;
18 //function to play music
19 int l_playmusic(lua_State *L){
20 SoundEngine::play_music(luaL_checkstring(L,1),lua_tointeger(L,2));
21 return 0;
24 //function to stop music
25 int l_stopmusic(lua_State *L){
26 SoundEngine::stop_music();
27 return 0;