fixes to imuse

This commit is contained in:
Pawel Kolodziejski 2005-01-03 16:27:57 +00:00
parent 6489c11fdc
commit 0726949cb8
7 changed files with 99 additions and 25 deletions

View file

@ -983,22 +983,21 @@ static void ImFadeParam() {
char *soundName = luaL_check_string(1);
int opcode = check_int(2);
int value = check_int(3);
int fadeDelay = check_int(4);
int duration = check_int(4);
switch (opcode) {
case IM_SOUND_PAN:
// it should be fade panning really
g_imuse->setPan(soundName, value);
g_imuse->setFadePan(soundName, value, duration);
break;
default:
error("ImFadeParam(%s, %h, %d, %d)", soundName, opcode, value, fadeDelay);
error("ImFadeParam(%s, %h, %d, %d)", soundName, opcode, value, duration);
break;
}
}
static void ImSetState() {
int state = check_int(1);
g_imuse->setMusicState(state);
g_imuseState = state;
}
static void ImSetSequence() {