Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
53e27e49
Commit
53e27e49
authored
Apr 20, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed the TimeCount variable
parent
72272502
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
35 deletions
+1
-35
id_sd.c
src/id_sd.c
+1
-34
id_sd.h
src/id_sd.h
+0
-1
No files found.
src/id_sd.c
View file @
53e27e49
...
@@ -11,34 +11,18 @@
...
@@ -11,34 +11,18 @@
SDMode
SoundMode
;
SDMode
SoundMode
;
SMMode
MusicMode
;
SMMode
MusicMode
;
SDSMode
DigiMode
;
SDSMode
DigiMode
;
longword
TimeCount
;
word
HackCount
;
word
HackCount
;
word
*
SoundTable
;
word
*
SoundTable
;
boolean
ssIsTandy
;
word
ssPort
=
2
;
word
ssPort
=
2
;
int
DigiMap
[
LASTSOUND
];
int
DigiMap
[
LASTSOUND
];
// Internal variables
// Internal variables
static
boolean
SD_Started
;
static
boolean
SD_Started
;
boolean
nextsoundpos
;
boolean
nextsoundpos
;
longword
TimerDivisor
,
TimerCount
;
static
char
*
ParmStrings
[]
=
{
"noal"
,
"nosb"
,
"nopro"
,
"noss"
,
"sst"
,
"ss1"
,
"ss2"
,
"ss3"
,
nil
};
soundnames
SoundNumber
,
DigiNumber
;
soundnames
SoundNumber
,
DigiNumber
;
word
SoundPriority
,
DigiPriority
;
word
SoundPriority
,
DigiPriority
;
int
LeftPosition
,
RightPosition
;
int
LeftPosition
,
RightPosition
;
long
LocalTime
;
word
TimerRate
;
word
NumDigi
,
DigiLeft
,
DigiPage
;
word
NumDigi
,
DigiLeft
,
DigiPage
;
word
*
DigiList
;
word
*
DigiList
;
...
@@ -50,19 +34,10 @@ static word DigiNextLen;
...
@@ -50,19 +34,10 @@ static word DigiNextLen;
// SoundBlaster variables
// SoundBlaster variables
static
boolean
sbNoCheck
,
sbNoProCheck
;
static
boolean
sbNoCheck
,
sbNoProCheck
;
static
boolean
sbSamplePlaying
;
static
byte
sbOldIntMask
=
-
1
;
static
byte
sbOldIntMask
=
-
1
;
static
byte
*
sbNextSegPtr
;
static
byte
*
sbNextSegPtr
;
static
byte
sbDMA
=
1
,
sbDMAa1
=
0x83
,
sbDMAa2
=
2
,
sbDMAa3
=
3
,
sba1Vals
[]
=
{
0x87
,
0x83
,
0
,
0x82
},
sba2Vals
[]
=
{
0
,
2
,
0
,
6
},
sba3Vals
[]
=
{
1
,
3
,
0
,
7
};
static
int
sbLocation
=
-
1
,
sbInterrupt
=
7
,
sbIntVec
=
0xf
,
sbIntVectors
[]
=
{
-
1
,
-
1
,
0xa
,
0xb
,
-
1
,
0xd
,
-
1
,
0xf
,
-
1
,
-
1
,
-
1
};
static
longword
sbNextSegLen
;
static
longword
sbNextSegLen
;
static
SampledSound
*
sbSamples
;
static
SampledSound
*
sbSamples
;
static
byte
sbpOldFMMix
,
sbpOldVOCMix
;
// SoundSource variables
// SoundSource variables
boolean
ssNoCheck
;
boolean
ssNoCheck
;
...
@@ -82,16 +57,8 @@ static byte sbpOldFMMix,sbpOldVOCMix;
...
@@ -82,16 +57,8 @@ static byte sbpOldFMMix,sbpOldVOCMix;
byte
*
alSound
;
byte
*
alSound
;
word
alBlock
;
word
alBlock
;
longword
alLengthLeft
;
longword
alLengthLeft
;
longword
alTimeCount
;
Instrument
alZeroInst
;
Instrument
alZeroInst
;
// This table maps channel numbers to carrier and modulator op cells
static
byte
carriers
[
9
]
=
{
3
,
4
,
5
,
11
,
12
,
13
,
19
,
20
,
21
},
modifiers
[
9
]
=
{
0
,
1
,
2
,
8
,
9
,
10
,
16
,
17
,
18
},
// This table maps percussive voice numbers to op cells
pcarriers
[
5
]
=
{
19
,
0xff
,
0xff
,
0xff
,
0xff
},
pmodifiers
[
5
]
=
{
16
,
17
,
18
,
20
,
21
};
// Sequencer variables
// Sequencer variables
boolean
sqActive
;
boolean
sqActive
;
static
word
alFXReg
;
static
word
alFXReg
;
...
...
src/id_sd.h
View file @
53e27e49
...
@@ -184,7 +184,6 @@ extern SDSMode DigiMode;
...
@@ -184,7 +184,6 @@ extern SDSMode DigiMode;
extern
SMMode
MusicMode
;
extern
SMMode
MusicMode
;
extern
boolean
DigiPlaying
;
extern
boolean
DigiPlaying
;
extern
int
DigiMap
[];
extern
int
DigiMap
[];
extern
longword
TimeCount
;
// Global time in ticks
// Function prototypes
// Function prototypes
extern
void
SD_Startup
(
void
),
extern
void
SD_Startup
(
void
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment