Chris Danford
e3155aec51
cleanup StepsType enum names
2008-12-21 01:53:48 +00:00
Glenn Maynard
3e36a05c5f
fix song.h!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2008-03-09 01:51:34 +00:00
Glenn Maynard
0255e272c4
cosmetic
2007-06-03 04:12:58 +00:00
Glenn Maynard
982a134d2c
apply the music rate to the sample music
2007-05-27 06:22:20 +00:00
Glenn Maynard
af1d2c40ed
move params t oa struct
...
simplify fallback
2007-04-06 18:56:53 +00:00
Glenn Maynard
1067755333
allow alternate loop music for music wheel
2007-04-06 18:34:43 +00:00
Glenn Maynard
f6677b20a3
p.m_FadeLength -> p.m_fFadeOutSeconds
2007-04-06 18:09:46 +00:00
Glenn Maynard
64910a7c0a
FadeLength -> FadeOutLength
2007-04-06 18:04:07 +00:00
Glenn Maynard
0198161675
bind GetPlayerBalance
2007-03-13 22:09:40 +00:00
Steve Checkoway
ede9c95a5e
Simplify.
2007-02-18 07:12:24 +00:00
Steve Checkoway
1b2c9da350
Don't create a loader.
2007-02-14 10:09:05 +00:00
Glenn Maynard
97f06ab454
remove GameSoundManager::GetPlayLatency
2007-01-18 09:15:25 +00:00
Glenn Maynard
804e3afd9f
unneeded
2007-01-18 09:08:51 +00:00
Glenn Maynard
75da18955d
remove SOUNDMAN->PlayOnce
2007-01-18 09:05:13 +00:00
Glenn Maynard
e7393b0cbe
tihs is safe now
2007-01-18 07:34:22 +00:00
Glenn Maynard
ff8237c56b
set start position in RageSound::StartPlaying
2006-12-23 22:28:17 +00:00
Glenn Maynard
d2db2ffd5c
don't SetParams constantly
2006-12-21 07:16:56 +00:00
Glenn Maynard
e141795020
SetPlayerBalance -> GetPlayerBalance
2006-12-09 23:51:08 +00:00
Glenn Maynard
c4719461f9
fixup comment
2006-11-21 18:37:42 +00:00
Glenn Maynard
5eb98b88bd
fixup
2006-11-21 18:36:44 +00:00
Glenn Maynard
efa198b4aa
comment
2006-11-21 18:32:49 +00:00
Glenn Maynard
33f8e799fc
fix GameSoundManager::PlayOnceFromAnnouncer
2006-11-21 18:32:33 +00:00
Glenn Maynard
f4bdf5671e
cleanup
2006-11-21 18:27:12 +00:00
Glenn Maynard
89785099b7
static -> const
2006-11-21 18:24:21 +00:00
Glenn Maynard
f198f5c933
set params, not generated message names
2006-11-21 18:23:12 +00:00
Glenn Maynard
4516e1378a
simplify
2006-11-21 18:22:20 +00:00
Glenn Maynard
c35c72e64a
don't iterate over note rows
2006-11-21 18:21:58 +00:00
Glenn Maynard
056055ce7c
simplify
2006-11-21 18:10:20 +00:00
Glenn Maynard
eaf69775bb
cleanup
2006-11-21 18:09:59 +00:00
Glenn Maynard
6eb5d623b9
cleanup
2006-11-21 18:05:24 +00:00
Glenn Maynard
c690fdcfe4
unify registration
2006-09-29 00:01:32 +00:00
Glenn Maynard
f4975f1f54
simpler Lua boilerplate
2006-09-27 20:30:29 +00:00
Glenn Maynard
578c6d5726
simplify singleton registration
2006-09-21 04:42:45 +00:00
Steve Checkoway
5e203c6dcb
Match other thread names, e.g. Decode thread.
2006-09-13 10:29:54 +00:00
Jason Felds
fceb0841a7
Remove param.
2006-08-21 00:32:27 +00:00
Steve Checkoway
80698277cf
Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
...
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford
af3e1c571c
move Steps searching out of song into SongUtil so that it can be shared with CourseEntry
2006-06-13 01:10:37 +00:00
Glenn Maynard
46c1b2ac05
oops. Do keep the non-offset beat around, and use it for actor effects.
...
(This should probably be used for more than this; this stuff needs a
cleanup ...)
(test case: pick a song with a stop near the beginning of the sample music,
eg. Fly With Me; no matter what the offset is set to, it should always show
the same pause on beat effects. This could do so while honoring the offset,
but getting that right in GameSoundManager is very tricky, and it's usually
not important for non-gameplay cosmetics.)
2006-04-09 15:54:53 +00:00
Glenn Maynard
788ad134f1
This broke beat alignment, and after that was fixed, other questions
...
came up (like how to align beat effects correctly). Revert this and
fix assist tick differently.
Add GetBeatAndBPSFromElapsedTimeNoOffset, GetBeatFromElapsedTimeNoOffset,
GetElapsedTimeFromBeatNoOffset. Use them to ignore GlobalOffsetSeconds.
2006-03-29 11:12:20 +00:00
Glenn Maynard
48063cef68
cleanup
2006-03-29 10:35:48 +00:00
Glenn Maynard
cefac82d1c
Ignore offset for beat alignment. This could use the offset, actually, but typical offsets are around a frame, so it's not actually noticable; and making it work reliably would be a pain. Only use the offset for judgements and arrow rendering.
2006-03-29 10:15:21 +00:00
Glenn Maynard
88f9590b9e
ignore offset in skip check
2006-03-29 10:13:34 +00:00
Glenn Maynard
757c6f8a6a
fix checkpoint
2006-03-29 10:12:24 +00:00
Glenn Maynard
92cfec6bba
simplify (tracking down skips)
2006-03-29 10:10:54 +00:00
Glenn Maynard
a99731d5d9
simplify (tracking down skips)
2006-03-29 10:09:10 +00:00
Glenn Maynard
ee9c292b09
Implement GlobalOffsetSeconds in GameState::UpdateSongPosition,
...
not TimingData. TimingData is a simple data structure, and shouldn't
be affected by hardware tweaks. This is also easier to bypass in cases
we don't want GlobalOffsetSeconds.
Don't adjust assist tick by GlobalOffsetSeconds.
2006-03-28 09:28:55 +00:00
Glenn Maynard
c6125c4e26
Actor.cpp "fDeltaTime >= 0" assertion fires occasionally. This is under
...
Foreground's update, caused by GAMESTATE->m_fMusicSeconds moving backwards.
This happens due to frame skips confusing GameSoundManager::GetFrameTimingAdjustment.
It expects that, when the framerate is stable, each frame will take 1/FPS.
If we skip a frame, it thinks one frame is 30ms late, and tries to
adjust by 30-16ms. Reduce the threshold for this adjustment to half a frame;
if we're that much late, the problem isn't scheduling jitter--we've probably
dropped a frame, and adjusting here is incorrect.
In case that isn't enough, clamp fDeltaTime in Foreground, too.
2006-02-25 10:08:18 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Chris Danford
182232344f
GetVideoModeParams -> GetActualVideoModeParams
...
add GetApiDescription
2005-11-11 21:16:48 +00:00