[Scummvm-cvs-logs] SF.net SVN: scummvm:[51654] scummvm/trunk/sound/softsynth/fmtowns_pc98

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Aug 2 21:36:49 CEST 2010


Revision: 51654
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51654&view=rev
Author:   lordhoto
Date:     2010-08-02 19:36:49 +0000 (Mon, 02 Aug 2010)

Log Message:
-----------
TOWNS/PC98: Replaced some tabs with spaces.

Modified Paths:
--------------
    scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp
    scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_euphony.cpp
    scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_driver.cpp
    scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp

Modified: scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp	2010-08-02 19:27:44 UTC (rev 51653)
+++ scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_audio.cpp	2010-08-02 19:36:49 UTC (rev 51654)
@@ -779,12 +779,12 @@
 		v |= 4;
 
 	for (uint8 reg = 0x80 + chan; reg < 0x90; reg += 4)
-		writeReg(part, reg,	_fmSaveReg[part][reg] | 0x0f);
+		writeReg(part, reg, _fmSaveReg[part][reg] | 0x0f);
 
 	writeReg(0, 0x28, v);
 
 	for (uint8 reg = 0x80 + chan; reg < 0x90; reg += 4)
-		writeReg(part, reg,	_fmSaveReg[part][reg]);
+		writeReg(part, reg, _fmSaveReg[part][reg]);
 
 	bufferedWriteReg(0, 0x28, v | 0xf0);
 

Modified: scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_euphony.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_euphony.cpp	2010-08-02 19:27:44 UTC (rev 51653)
+++ scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_euphony.cpp	2010-08-02 19:36:49 UTC (rev 51654)
@@ -109,7 +109,7 @@
 
 	if (_tempoControlMode == 1) {
 		//if (///)
-		//	return;
+		//  return;
 		setTempoIntern(_defaultTempo);
 	} else {
 		setTempoIntern(_defaultTempo);
@@ -415,7 +415,7 @@
 }
 
 bool TownsEuphonyDriver::parseNext() {
-#define OPC(x)	&TownsEuphonyDriver::evt##x
+#define OPC(x) &TownsEuphonyDriver::evt##x
 	static const EuphonyOpcode opcodes[] = {
 		OPC(NotImpl),
 		OPC(SetupNote),

Modified: scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_driver.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_driver.cpp	2010-08-02 19:27:44 UTC (rev 51653)
+++ scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_driver.cpp	2010-08-02 19:36:49 UTC (rev 51654)
@@ -34,13 +34,13 @@
 	virtual void init();
 
 	typedef enum channelState {
-		CHS_RECALCFREQ		=	0x01,
-		CHS_KEYOFF			=	0x02,
-		CHS_SSGOFF			=	0x04,
-		CHS_VBROFF			=	0x08,
-		CHS_ALLOFF			=	0x0f,
-		CHS_PROTECT			=	0x40,
-		CHS_EOT				=	0x80
+		CHS_RECALCFREQ = 0x01,
+		CHS_KEYOFF     = 0x02,
+		CHS_SSGOFF     = 0x04,
+		CHS_VBROFF     = 0x08,
+		CHS_ALLOFF     = 0x0f,
+		CHS_PROTECT    = 0x40,
+		CHS_EOT        = 0x80
 	} ChannelState;
 
 	virtual void loadData(uint8 *data);
@@ -197,7 +197,7 @@
 }
 
 void TownsPC98_MusicChannel::init() {
-#define Control(x)	&TownsPC98_MusicChannel::control_##x
+#define Control(x) &TownsPC98_MusicChannel::control_##x
 	static const ControlEventFunc ctrlEvents[] = {
 		Control(f0_setPatch),
 		Control(f1_presetOutputLevel),
@@ -589,7 +589,7 @@
 void TownsPC98_MusicChannelSSG::init() {
 	_algorithm = 0x80;
 
-#define Control(x)	&TownsPC98_MusicChannelSSG::control_##x
+#define Control(x) &TownsPC98_MusicChannelSSG::control_##x
 	static const ControlEventFunc ctrlEventsSSG[] = {
 		Control(f0_setPatch),
 		Control(f1_setTotalLevel),
@@ -936,7 +936,7 @@
 void TownsPC98_MusicChannelPCM::init() {
 	_algorithm = 0x80;
 
-#define Control(x)	&TownsPC98_MusicChannelPCM::control_##x
+#define Control(x) &TownsPC98_MusicChannelPCM::control_##x
 	static const ControlEventFunc ctrlEventsPCM[] = {
 		Control(dummy),
 		Control(f1_prcStart),
@@ -1328,7 +1328,7 @@
 }
 
 const uint8 TownsPC98_AudioDriver::_drvTables[] = {
-	//	channel presets
+	//  channel presets
 	0x00, 0x80, 0x00, 0x00, 0x00, 0x01,
 	0x01, 0x80, 0x01, 0x01, 0x00, 0x02,
 	0x02, 0x80, 0x02, 0x02, 0x00, 0x04,
@@ -1336,29 +1336,29 @@
 	0x01, 0x80, 0x04, 0x05, 0x01, 0x10,
 	0x02, 0x80, 0x05, 0x06, 0x01, 0x20,
 
-	//	control event size
-	0x01, 0x01, 0x01, 0x01,	0x01, 0x01, 0x04, 0x05,
+	//  control event size
+	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x04, 0x05,
 	0x02, 0x06, 0x02, 0x00, 0x00, 0x02, 0x00, 0x02,
 
-	//	fmt level presets
-	0x54, 0x50,	0x4C, 0x48,	0x44, 0x40, 0x3C, 0x38,
+	//  fmt level presets
+	0x54, 0x50, 0x4C, 0x48, 0x44, 0x40, 0x3C, 0x38,
 	0x34, 0x30, 0x2C, 0x28, 0x24, 0x20, 0x1C, 0x18,
-	0x14, 0x10, 0x0C, 0x08,	0x04, 0x90, 0x90, 0x90,
+	0x14, 0x10, 0x0C, 0x08, 0x04, 0x90, 0x90, 0x90,
 
-	//	carriers
-	0x08, 0x08, 0x08, 0x08,	0x0C, 0x0E, 0x0E, 0x0F,
+	//  carriers
+	0x08, 0x08, 0x08, 0x08, 0x0C, 0x0E, 0x0E, 0x0F,
 
-	//	pc98 level presets
+	//  pc98 level presets
 	0x40, 0x3B, 0x38, 0x34, 0x30, 0x2A, 0x28, 0x25,
 	0x22, 0x20, 0x1D, 0x1A, 0x18, 0x15, 0x12, 0x10,
 	0x0D, 0x0A, 0x08, 0x05, 0x02, 0x90, 0x90, 0x90,
 
-	//	frequencies
+	//  frequencies
 	0x6A, 0x02, 0x8F, 0x02, 0xB6, 0x02, 0xDF, 0x02,
 	0x0B, 0x03, 0x39, 0x03, 0x6A, 0x03, 0x9E, 0x03,
 	0xD5, 0x03, 0x10, 0x04, 0x4E, 0x04, 0x8F, 0x04,
 
-	//	ssg frequencies
+	//  ssg frequencies
 	0xE8, 0x0E, 0x12, 0x0E, 0x48, 0x0D, 0x89, 0x0C,
 	0xD5, 0x0B, 0x2B, 0x0B, 0x8A, 0x0A, 0xF3, 0x09,
 	0x64, 0x09, 0xDD, 0x08, 0x5E, 0x08, 0xE6, 0x07,

Modified: scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp	2010-08-02 19:27:44 UTC (rev 51653)
+++ scummvm/trunk/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp	2010-08-02 19:36:49 UTC (rev 51654)
@@ -32,7 +32,7 @@
 	_rateTbl(rateTable), _rshiftTbl(shiftTable), _adTbl(attackDecayTable), _fTbl(frqTable),
 	_sinTbl(sineTable), _tLvlTbl(tlevelOut), _detnTbl(detuneTable), _tickLength(timerbase * 2),
 	_specifiedAttackRate(0), _specifiedDecayRate(0), _specifiedReleaseRate(0), _specifiedSustainRate(0),
-	_phase(0), _state(kEnvReady),_ playing(false), _timer(0), _keyScale1(0),
+	_phase(0), _state(kEnvReady), _playing(false), _timer(0), _keyScale1(0),
 	_keyScale2(0), _currentLevel(1023), _ampMod(false), _tickCount(0) {
 
 	fs_a.rate = fs_a.shift = fs_d.rate = fs_d.shift = fs_s.rate = fs_s.shift = fs_r.rate = fs_r.shift = 0;
@@ -1261,7 +1261,7 @@
 }
 
 const uint32 TownsPC98_FmSynth::_adtStat[] = {
-	0x00010001, 0x00010001,	0x00010001, 0x01010001,
+	0x00010001, 0x00010001, 0x00010001, 0x01010001,
 	0x00010101, 0x00010101, 0x00010101, 0x01010101,
 	0x01010101, 0x01010101, 0x01010102, 0x01010102,
 	0x01020102, 0x01020102, 0x01020202, 0x01020202,
@@ -1275,14 +1275,14 @@
 const uint8 TownsPC98_FmSynth::_detSrc[] = {
 	0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03,
 	0x04, 0x04, 0x04, 0x05, 0x05, 0x06, 0x06, 0x07,
-	0x08, 0x08, 0x08, 0x08, 0x01, 0x01,	0x01, 0x01,
-	0x02, 0x02, 0x02, 0x02, 0x02, 0x03,	0x03, 0x03,
+	0x08, 0x08, 0x08, 0x08, 0x01, 0x01, 0x01, 0x01,
+	0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03,
 	0x04, 0x04, 0x04, 0x05, 0x05, 0x06, 0x06, 0x07,
-	0x08, 0x08, 0x09, 0x0a,	0x0b, 0x0c, 0x0d, 0x0e,
-	0x10, 0x10, 0x10, 0x10,	0x02, 0x02, 0x02, 0x02,
+	0x08, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e,
+	0x10, 0x10, 0x10, 0x10, 0x02, 0x02, 0x02, 0x02,
 	0x02, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x05,
-	0x05, 0x06,	0x06, 0x07, 0x08, 0x08, 0x09, 0x0a,
-	0x0b, 0x0c,	0x0d, 0x0e, 0x10, 0x11, 0x13, 0x14,
+	0x05, 0x06, 0x06, 0x07, 0x08, 0x08, 0x09, 0x0a,
+	0x0b, 0x0c, 0x0d, 0x0e, 0x10, 0x11, 0x13, 0x14,
 	0x16, 0x16, 0x16, 0x16
 };
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list