/* ScummVM - Graphic Adventure Engine
 *
 * ScummVM is the legal property of its developers, whose names
 * are too numerous to list here. Please refer to the COPYRIGHT
 * file distributed with this source distribution.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include "mads/madsv2/core/digi.h"
#include "mads/madsv2/core/config.h"
#include "mads/madsv2/engine.h"

namespace MADS {
namespace MADSV2 {

int digi_val2;
int digi_timing_index;
bool digi_flag1, digi_flag2;

void digi_install() {
	config_file.forest1 = 0;
	digi_val2 = 0;
	digi_timing_index = 0;
}

void digi_uninstall() {
}

void digi_play_build_ii(char thing, int num, int slot) {
	Common::String name;
	name += (thing == '_') ? 's' : 'd';
	name += "0ii";
	name += Common::String::format("%.3d", num);
	digi_play(name.c_str(), slot);
}

void digi_play_build(int room, char thing, int num, int slot) {
	Common::String name;
	name += (thing == '_') ? 's' : 'd';
	name += Common::String::format("%d", room);
	name += Common::String::format("%.3d", num);
	digi_play(name.c_str(), slot);
}

void digi_play(const char *name, int slot) {}
void digi_stop(int which_one) {}
void digi_read_another_chunk() {}
void digi_initial_volume(int vol) {}
void digi_set_volume(int vol, int slot) {}

} // namespace MADSV2
} // namespace MADS
