Glenn Maynard
567e1c533f
move USB handling into a separate file
2003-03-19 20:34:40 +00:00
Glenn Maynard
b4776d1ad0
add USB.*
2003-03-19 20:33:42 +00:00
Glenn Maynard
247d94395d
add metrics
2003-03-19 20:02:25 +00:00
Glenn Maynard
e00d3d0e9e
handle lyric paths like other paths
...
note that we don't want to load things in TidyUpData, since
that's only called when we're not loading from cache
2003-03-19 20:01:33 +00:00
Glenn Maynard
0e30cd409c
add (c)
2003-03-19 20:00:19 +00:00
Glenn Maynard
b8f5fe4182
add LyricDisplay
2003-03-19 19:59:13 +00:00
Glenn Maynard
aedbf224a9
Move lyric display into an actor
2003-03-19 19:58:22 +00:00
Glenn Maynard
9a23edcd1a
Move lyric display into an actor
...
Use Commands for tween in/out; queue a whole lyric line at
once (simpler)
2003-03-19 19:57:52 +00:00
Glenn Maynard
07fadbc8f5
add GetCommandLength
2003-03-19 19:56:27 +00:00
Glenn Maynard
bd51901eb8
cache lyric path
2003-03-19 19:35:32 +00:00
Glenn Maynard
a89f4edacc
move LRCFile into File Types
2003-03-19 17:48:39 +00:00
Glenn Maynard
d3d4e48071
use GAMESTATE->m_fMusicSeconds for the current music time
...
Tracking it yourself will break with courses, vary depending on how
the screen tweens in, and so on, which you probably don't want.
2003-03-19 17:46:07 +00:00
Glenn Maynard
46c7457ab5
move lyric updating into a separate function
...
(trying to debug a crash; 6+ levels of indentation makes that hard)
2003-03-19 17:43:11 +00:00
Glenn Maynard
1876494374
add missing metrics
2003-03-19 17:41:54 +00:00
Glenn Maynard
4930e68349
remove more unneeded includes
2003-03-19 17:25:27 +00:00
Glenn Maynard
dff657ab19
remove unneeded includes
2003-03-19 17:23:24 +00:00
Glenn Maynard
28e3565775
don't do :: and &foo; replacements for non-strings
2003-03-18 21:41:17 +00:00
Glenn Maynard
baef74db42
newline at eof
2003-03-17 23:24:00 +00:00
Glenn Maynard
0d087fb198
fix comparison; this happened to work because STYLE_DANCE_SINGLE and
...
NOTES_TYPE_DANCE_SINGLE both happen to be 0
2003-03-17 22:12:20 +00:00
Glenn Maynard
84cc54417f
fix crash (in code not being executed)
2003-03-17 21:29:17 +00:00
Glenn Maynard
448a1fac6e
hopefully fix some g++ problems
2003-03-17 21:13:14 +00:00
Glenn Maynard
c7fdf4ed9e
whitespace changes only: sm uses a hard tab width of 4, not 8
2003-03-17 20:12:00 +00:00
Glenn Maynard
d95c8885db
fix busy looping in the null sound driver
2003-03-17 20:05:49 +00:00
Glenn Maynard
e6e271f790
hopefully fix some skips in DSound (sleep calculation was giving
...
results higher than I intended)
2003-03-17 20:02:20 +00:00
Glenn Maynard
a561c10189
fix underrun notice
2003-03-17 20:01:05 +00:00
Glenn Maynard
ff3ae21bdd
fix croppedsprite oddity when scrolling from random/roulette to another
...
banner
2003-03-17 19:42:17 +00:00
Glenn Maynard
be78746167
move SDL event handling to a function, to make the main
...
loop simpler
2003-03-17 06:20:57 +00:00
Glenn Maynard
bbb416d615
re-sync messages, so the jukebox continues at end of song
...
fix assert failure
2003-03-17 04:56:47 +00:00
Glenn Maynard
f04507a017
don't trap users in the jukebox
...
also, the jukebox could be used as an alternate "attract sequence",
so let's handle the attract coin logic there, too
2003-03-17 04:17:30 +00:00
Glenn Maynard
331fdab2f8
Fix UseSongBG
...
Hmm. Need some way of using rendering masks in BGAs. Not full
access to the zbuffer, of course, just a way to implement things like
the masked-off stage scroll on top of an unmasked song background.
Being able to do this based on the alpha values of another image would
have a whole lot of bonuses for background animations, too; eg the
canonical trick of rendering things masked by a silhouette. This is tricky
to implement, though.
It'd be even better if we could do this with full alpha.
Most multipass algorithms I can think of would require an alpha
channel on the framebuffer, though, and we very often don't have
that. I'll keep thinking about it (and perhaps randomly brainstorming
into the nearest edit window, such as WinCVS ...)
2003-03-17 03:24:12 +00:00
Glenn Maynard
db47d0825b
Start loading the gameplay screen as soon as the stage graphic
...
is finished, which reduces unnecessary delay.
This also means that it's possible to have, say, an Extra stage screen with
a long, complicated graphic, without having to make every screen delay
that long before prepping.
(It's currently not possible to have different switch delays for each type; eg.
Stage 1 prepping in 1 second and switching in 3, and Extra prepping in 3
seconds and switching in 5; the switch time is constant, based on m_In.
This would be useful in the longer-complicated-extra-stage case.)
2003-03-17 01:48:40 +00:00
Glenn Maynard
f1a083cee5
autogenerate m_fLengthSeconds if not specified
2003-03-17 01:35:50 +00:00
Glenn Maynard
7f17ae1b42
add BGAnimationLayer::GetMaxTweenTimeLeft
...
this isn't an overload of GetTweenTimeLeft, since it returns the
tween time of its children, which is separate from its own tween
time
2003-03-17 01:34:12 +00:00
Glenn Maynard
daf9d373a3
Dynamically allocate Sprites in backgrounds, instead of always
...
allocating and initializing hundreds of them per background.
2003-03-17 01:15:42 +00:00
Glenn Maynard
7d3ef82ff5
add a hack to Update(0) when the screen isn't on the stack
2003-03-17 01:12:58 +00:00
Glenn Maynard
11268b74a1
make some explicit guarantees about message delivery order
2003-03-17 01:02:04 +00:00
Glenn Maynard
8771c3d6bf
fix compile
...
fix warning
2003-03-16 21:55:50 +00:00
Glenn Maynard
996aa1d66e
whoops, remove profiling switch
2003-03-16 07:38:28 +00:00
Glenn Maynard
ee10a98b35
fix unscrolled banner being displayed for one frame
...
make sure we include hints when reloading the texture when fading,
or hints may not match and it'll get reloaded
2003-03-16 02:59:34 +00:00
Glenn Maynard
f93156f848
add missing kuru kanji
2003-03-16 01:29:44 +00:00
Glenn Maynard
1ab0823940
Fix oddities in the music wheel when two songs use the default
...
banner in a row (m_size wasn't being reset so CroppedSprite messed
up)
2003-03-16 00:45:06 +00:00
Glenn Maynard
4383b2ef3a
fix warnings
2003-03-15 23:55:59 +00:00
Glenn Maynard
bbf8067551
remove prebuffering from RageSound; let Preload handle it
2003-03-15 23:55:24 +00:00
Glenn Maynard
187aee0a05
use RageSoundReader_Preload
2003-03-15 23:34:45 +00:00
Glenn Maynard
2f411e2605
add RageSoundReader_Preload.cpp
2003-03-15 23:34:11 +00:00
Glenn Maynard
a990cdcb42
fix prebuf size
2003-03-15 23:28:19 +00:00
Glenn Maynard
e767641c67
Modularize preloading with a sound reader, so the !big logic
...
in RageSound can go away
2003-03-15 23:28:05 +00:00
Glenn Maynard
e52887948f
(c) footers
2003-03-15 23:27:34 +00:00
Glenn Maynard
b6c45c4f1c
add virtual copy ctor for RageSoundReaders
2003-03-15 23:19:20 +00:00
Glenn Maynard
b6d14b1388
sound readers can Open in completely varying ways; don't
...
provide a single virtual for it
2003-03-15 21:17:05 +00:00
Glenn Maynard
55bbb642f3
don't downcast here (do it later)
2003-03-15 21:16:38 +00:00
Glenn Maynard
a1f8acd915
simplify a little
2003-03-15 21:02:45 +00:00
Glenn Maynard
d740128485
FocusingSprite is obsolete
2003-03-15 20:31:09 +00:00
Glenn Maynard
8f9ac4d0ee
unused
2003-03-15 09:59:38 +00:00
Glenn Maynard
8d16f52345
preempt possible problems with message handling
...
(don't think this is related to my stage screen crash, which
isn't happening in debug; I might just need to rebuild release)
2003-03-15 07:21:09 +00:00
Glenn Maynard
649ad21e43
revert mixing code
2003-03-15 05:57:44 +00:00
Glenn Maynard
3b1396dd65
remove unused prototype
2003-03-15 03:23:21 +00:00
Glenn Maynard
6e317b9f57
need to flush the directory cache or it'll keep thinking the file is there
2003-03-15 03:09:06 +00:00
Glenn Maynard
7f8e3b3886
Add skip detection when timestamping is on
...
(could be split off)
2003-03-15 02:44:54 +00:00
Glenn Maynard
77f28df1fa
this is extranneous and is causing problems
2003-03-15 00:10:55 +00:00
Glenn Maynard
23817566b8
Move ScreenManager actors into a separate screen, to unclutter
...
ScreenManager, and so it can use AddChild
2003-03-15 00:02:54 +00:00
Glenn Maynard
35e1580fa3
fix random/roulette hang; add an assert to catch this in the future
2003-03-14 22:55:06 +00:00
Glenn Maynard
cc370ed036
quiet unused variable warnings
2003-03-14 22:28:32 +00:00
Glenn Maynard
7cc5888167
make ScreenTestSound work again
2003-03-14 21:54:20 +00:00
Glenn Maynard
c9f5f6fd7a
update "aoi" translations to use the fixed kanji
2003-03-14 02:30:10 +00:00
Glenn Maynard
3162b7f192
careful; "_japanese 16px" affects fonts named "_japanese 16px*",
...
modifying it doesn't affect "_japanese 24px"
fix aoi in 16px.ini and 24px.ini
2003-03-14 02:28:48 +00:00
Glenn Maynard
35bf217063
oops; fix hack
2003-03-11 21:05:53 +00:00
Glenn Maynard
8f9e1ba367
use the correct constant
2003-03-11 19:07:41 +00:00
Glenn Maynard
b7fd35d122
make extension matching case-insensitive
2003-03-11 19:07:03 +00:00
Glenn Maynard
3936f52035
fix garbage value when glGetTexLevelParameteriv returns
...
error
2003-03-11 19:06:11 +00:00
Glenn Maynard
eaf41bad5c
don't warn about reloads for the first load
2003-03-11 19:02:09 +00:00
Glenn Maynard
b14c6cf846
experiment to try to fix danger background thrashing
2003-03-11 18:52:50 +00:00
Glenn Maynard
2bf152c2c2
const fix
2003-03-11 18:40:42 +00:00
Glenn Maynard
123cd35e17
Small movie texture optimization: honor the texture color depth.
...
Another biggie is that we're copying every frame an extra time in
MovieTexture_DShow::NewData(). This is rather hard to fix without
bringing back the stability problems we had before; I need to think
about how to do this. (Commenting out this memcpy boosts my test
video to about 22fps, so this isn't minor.)
2003-03-11 18:27:10 +00:00
Glenn Maynard
3d20f7ee70
fix reversed BEST sort
...
add comment
2003-03-10 10:51:41 +00:00
Glenn Maynard
86b0b1e7d7
simplify, and handle songs with a #SAMPLESTART but no
...
#SAMPLELENGTH
2003-03-08 19:59:30 +00:00
Glenn Maynard
1d72329ba7
fix music scroll
2003-03-07 20:27:28 +00:00
Glenn Maynard
2dc8e1f59f
Try mixing differently; this might help sound quality for people
...
using the fallback sound drivers.
2003-03-07 19:28:34 +00:00
Glenn Maynard
8d47a3e57e
Add log timestamping. This lets us check the time when something
...
odd happens (eg. a skip), and see if anything happened in the log
at that time after we quit.
2003-03-07 04:48:13 +00:00
Glenn Maynard
a2a774a3c2
add m_bTimestamping
2003-03-07 04:47:04 +00:00
Glenn Maynard
0c400d3567
fix constants
...
(I don't have a joystick with hats to actually test this, though.)
2003-03-07 04:08:40 +00:00
Glenn Maynard
a7eae8d067
remove the newer prefs INIs, not just StepMania.ini
2003-03-06 23:26:20 +00:00
Glenn Maynard
203fd190a3
simple adds
2003-03-06 23:19:06 +00:00
Glenn Maynard
0b22378211
give a bit more time when we don't have focus
2003-03-06 23:08:21 +00:00
Glenn Maynard
2fdc892e98
We want to write scores for songs that havn't been passed,
...
so we keep track of times played.
2003-03-06 23:06:21 +00:00
Glenn Maynard
0a0aa2a8f6
inval cache
2003-03-06 23:03:42 +00:00
Glenn Maynard
f64f210ca1
Remove MAX_BEATS.
2003-03-06 22:51:30 +00:00
Glenn Maynard
2f7c8a0c2e
Reduce dependency on MAX_BEATS.
2003-03-06 22:50:44 +00:00
Glenn Maynard
7cd6c95cac
Reduce dependency on MAX_BEATS.
2003-03-06 22:42:29 +00:00
Glenn Maynard
75a058c1dd
Reduce dependency on MAX_BEATS.
...
Don't call GetLastBeat from GetFirstBeat.
2003-03-06 22:40:04 +00:00
Glenn Maynard
e645510909
Reduce dependency on MAX_BEATS
2003-03-06 22:25:21 +00:00
Glenn Maynard
0ad5b74051
work around another (easy) gldirect bug
2003-03-06 09:58:25 +00:00
Glenn Maynard
ed64f269ef
Work around GLDirect bug.
2003-03-06 09:26:07 +00:00
Glenn Maynard
1604222001
Small fix for bAALinesCauseProblems
...
Add Add bPackedPixelsCauseProblems
2003-03-06 09:25:48 +00:00
Glenn Maynard
9b635c0015
add some asserts near where some crashdumps pointed to
2003-03-06 08:10:28 +00:00
Glenn Maynard
d17a9c9f17
update
2003-03-06 03:13:52 +00:00
Glenn Maynard
4f9f288ddd
eof nl
2003-03-06 03:13:36 +00:00
Glenn Maynard
dcd49a286f
fix compile
2003-03-06 02:01:28 +00:00
Glenn Maynard
1bb3349c6e
fix compile problems (operator<() must be const)
2003-03-06 01:12:27 +00:00
Glenn Maynard
5951cf7f1f
fix compile problems
2003-03-06 01:02:17 +00:00