aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/adlib_sbi.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-29 13:04:32 +0000
committerMax Horn2009-05-29 13:04:32 +0000
commitb72c2a29fbef2a89199a4b116c8af45172841240 (patch)
treea394a6867fd20f1b3168e20e993f0d60abe9c67f /engines/sci/sfx/adlib_sbi.cpp
parent64e6c596c7d485a2e68138b08e573813c4783b59 (diff)
downloadscummvm-rg350-b72c2a29fbef2a89199a4b116c8af45172841240.tar.gz
scummvm-rg350-b72c2a29fbef2a89199a4b116c8af45172841240.tar.bz2
scummvm-rg350-b72c2a29fbef2a89199a4b116c8af45172841240.zip
SCI: Removing useless adlib-via-OSS code
svn-id: r40992
Diffstat (limited to 'engines/sci/sfx/adlib_sbi.cpp')
-rw-r--r--engines/sci/sfx/adlib_sbi.cpp74
1 files changed, 0 insertions, 74 deletions
diff --git a/engines/sci/sfx/adlib_sbi.cpp b/engines/sci/sfx/adlib_sbi.cpp
deleted file mode 100644
index 8ce2df75ab..0000000000
--- a/engines/sci/sfx/adlib_sbi.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/* 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * $URL$
- * $Id$
- *
- */
-
-#include "sci/sfx/adlib_sbi.h"
-
-namespace Sci {
-
-adlib_instr adlib_sbi[96];
-
-void make_sbi(adlib_def *one, uint8 *buffer) {
- memset(buffer, 0, sizeof(adlib_instr));
-
-#if 0
- printf("%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x ", one->keyscale1, one->freqmod1, one->feedback1, one->attackrate1, one->sustainvol1, one->envelope1, one->decayrate1, one->releaserate1, one->volume1, one->ampmod1, one->vibrato1, one->keybdscale1, one->algorithm1, one->waveform1);
-
- printf(" %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x ", one->keyscale2, one->freqmod2, one->feedback2, one->attackrate2, one->sustainvol2, one->envelope2, one->decayrate2, one->releaserate2, one->volume2, one->ampmod2, one->vibrato2, one->keybdscale2, one->algorithm2, one->waveform2);
-
- printf("\n");
-#endif
-
- buffer[0] |= ((one->ampmod1 & 0x1) << 7);
- buffer[0] |= ((one->vibrato1 & 0x1) << 6);
- buffer[0] |= ((one->envelope1 & 0x1) << 5);
- buffer[0] |= ((one->keybdscale1 & 0x1) << 4);
- buffer[0] |= (one->freqmod1 & 0xf);
- buffer[1] |= ((one->ampmod2 & 0x1) << 7);
- buffer[1] |= ((one->vibrato2 & 0x1) << 6);
- buffer[1] |= ((one->envelope2 & 0x1) << 5);
- buffer[1] |= ((one->keybdscale2 & 0x1) << 4);
- buffer[1] |= (one->freqmod2 & 0xf);
- buffer[2] |= ((one->keyscale1 & 0x3) << 6);
- buffer[2] |= (one->volume1 & 0x3f);
- buffer[3] |= ((one->keyscale2 & 0x3) << 6);
- buffer[3] |= (one->volume2 & 0x3f);
- buffer[4] |= ((one->attackrate1 & 0xf) << 4);
- buffer[4] |= (one->decayrate1 & 0xf);
- buffer[5] |= ((one->attackrate2 & 0xf) << 4);
- buffer[5] |= (one->decayrate2 & 0xf);
- buffer[6] |= ((one->sustainvol1 & 0xf) << 4);
- buffer[6] |= (one->releaserate1 & 0xf);
- buffer[7] |= ((one->sustainvol2 & 0xf) << 4);
- buffer[7] |= (one->releaserate2 & 0xf);
- buffer[8] |= (one->waveform1 & 0x3);
- buffer[9] |= (one->waveform2 & 0x3);
-
- buffer[10] |= ((one->feedback1 & 0x7) << 1);
- buffer[10] |= (1 - (one->algorithm1 & 0x1));
-
- return;
-}
-
-} // End of namespace Sci