[Scummvm-cvs-logs] CVS: scummvm/sound imuse.cpp,NONE,1.1

Ludvig Strigeus strigeus at users.sourceforge.net
Sat Dec 1 09:24:18 CET 2001


Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv12414

Added Files:
	imuse.cpp 
Log Message:
adlib sound support, use USE_ADLIB

--- NEW FILE: imuse.cpp ---
/* ScummVM - Scumm Interpreter
 * Copyright (C) 2001 The ScummVM project
 *
 * 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 2
 * 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, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * $Header: /cvsroot/scummvm/scummvm/sound/imuse.cpp,v 1.1 2001/12/01 17:23:50 strigeus Exp $
 */
[...2273 lines suppressed...]
}

int Part::update_actives(uint16 *active) {
	return _drv->part_update_active(this, active);
}

void Part::set_program(byte program) {
	if (_program!=program || _bank!=0) {
		_program = program;
		_bank = 0;
		changed(SoundDriver::pcProgram);
	}
}

void Part::set_instrument(uint b) {
	_bank = (byte)(b>>8);
	_program = (byte)b;
	changed(SoundDriver::pcProgram);
}






More information about the Scummvm-git-logs mailing list