Chris Danford
a5f09f296c
new battle layout
2003-05-13 13:35:32 +00:00
Glenn Maynard
fe33dec385
Partial s/GetString/c_str/.
...
(watch out for PlayerOptions::GetString and SongOptions::GetString)
2003-04-25 00:01:35 +00:00
Glenn Maynard
8b8b0bd66a
handle driver-specified sample rates
2003-04-24 23:51:05 +00:00
Glenn Maynard
aad7ce38cf
use the sample rate
2003-04-23 19:49:23 +00:00
Glenn Maynard
111eeef550
use RageSoundReader_Resample
...
(almost not tied to 44100 ...)
2003-04-23 19:11:59 +00:00
Glenn Maynard
a5e6cd2787
Simplify.
...
Remove preloading; it's not useful.
2003-04-23 18:33:59 +00:00
Glenn Maynard
30aa2a6822
Simplify: move vars out of a struct that's no longer used
2003-04-23 18:22:16 +00:00
Glenn Maynard
6199255010
fix rounding error causing .9 to actually play at .8
2003-04-21 07:22:18 +00:00
Glenn Maynard
e2f1e6bda9
cleanup
...
use function-style or C-style casts, not static_cast; they're identical
and easier to read
2003-04-20 22:08:32 +00:00
Steve Checkoway
86fce28601
fixed conversion warnings
2003-04-20 12:53:38 +00:00
Glenn Maynard
ca48082f50
comment
2003-04-12 16:09:07 +00:00
Glenn Maynard
26cc236bca
rewind the sound if preload fails
2003-03-31 22:20:11 +00:00
Glenn Maynard
0ae6236f7c
Add an option to force preloading. This only preloads sounds
...
that are loaded in advance, which excludes sample music
and some announcers.
Disable "sound volume". That's not what that variable is for; setting
it to higher values will result in clipping on a lot of hardware, causing
people to report it as a "bug" (which it's not). Setting it to lower values
results in lower quality sound. To do this correctly, we'd need to add
an interface for accessing the real hardware mixer volume, which I
don't really want to do right now ...
2003-03-31 21:21:23 +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
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
Chris Danford
ad34d417f6
Get rid of some global strings to (shrinks release exe size by 3.5MB)
2003-03-15 19:25:37 +00:00
Chris Danford
28af4a9447
Fixed seeking in RageSound at non-1x playback rates
2003-03-13 08:43:04 +00:00
Glenn Maynard
7a4934980a
Fix SetPositionSamples() when we have a rate. This should fix
...
the editor problems.
There's a major restriction of rate changing: you can't change the
rate while the song is playing. That's because RageSound keeps
track of the number of samples actually *output to the sound driver*;
it determines the position within the sound by dividing by the rate.
(It might be possible to adjust position dynamically within SetPlaybackRate
to make this work, but this isn't done right now.)
2003-03-05 02:31:22 +00:00
Glenn Maynard
7a1f903c95
give a little more info
2003-02-21 22:06:25 +00:00
Glenn Maynard
42cfd6f98c
stdafx -> global
2003-02-16 04:01:45 +00:00
Glenn Maynard
76e1f7b8ba
add separately controllable fade
2003-02-10 21:43:50 +00:00
Glenn Maynard
a88f7688b7
fix jump when backing out of music
2003-01-25 09:01:42 +00:00
Glenn Maynard
aa90ddfccd
don't precache sounds by default
...
(makes loads faster and doesn't really matter for most things)
2003-01-21 02:44:35 +00:00
Glenn Maynard
607a1b6320
fix up error reporting; move some stray sdl_sound stuff out of RageSound
2003-01-16 01:04:54 +00:00
Glenn Maynard
ce80a52c69
more robust fix
2003-01-12 04:19:45 +00:00
Glenn Maynard
6acdb4d89a
/usr/bin/brown paper bag
2003-01-12 03:50:24 +00:00
Glenn Maynard
7340162a0a
fix sound thread chewing CPU due to very small loops
2003-01-12 03:45:49 +00:00
Glenn Maynard
89a3690d59
fix
2003-01-08 00:43:40 +00:00
Glenn Maynard
2c95666ee2
add error check
2003-01-06 10:52:53 +00:00
Glenn Maynard
f6ef28fac5
drop LoadAndPlayIfNotAlready
2003-01-03 02:52:00 +00:00
Glenn Maynard
be2f4df8d5
add debug
2003-01-02 23:01:35 +00:00
Glenn Maynard
0effca1367
implement rate changing (more) correctly
2003-01-02 06:52:39 +00:00
Glenn Maynard
51c945c8c8
(this rate code isn't yet working)
2002-12-31 01:26:42 +00:00
Glenn Maynard
e525a266df
fixups and some not-yet-working rate code
2002-12-27 23:15:39 +00:00
Glenn Maynard
5c140d053e
don't allow Load() on copies
2002-12-22 08:28:21 +00:00
Glenn Maynard
f7bf2ef2fa
changed sound API
2002-12-22 08:13:33 +00:00
Glenn Maynard
502256e91e
s/throw RageException/RageException::Throw/
...
hush that loud warning
2002-12-21 18:38:29 +00:00
Glenn Maynard
47a4d5921e
use lock macro
...
optimization
2002-12-21 05:14:54 +00:00
Glenn Maynard
5f5db5d2ef
use a deque for the pos_map; make it more dynamic
2002-12-21 02:08:49 +00:00
Glenn Maynard
576d2ba4aa
cleanup, fix
2002-12-20 02:32:23 +00:00
Glenn Maynard
878ebe7aae
measure start and length in samples
2002-12-20 02:00:43 +00:00
Glenn Maynard
13fee58c65
better length handling
2002-12-20 01:45:41 +00:00
Glenn Maynard
ead9944ac6
update
2002-12-19 04:08:38 +00:00
Glenn Maynard
8826f57b39
fix locking
2002-12-19 01:30:19 +00:00
Glenn Maynard
21ff1a044e
fix up sound firing
2002-12-18 07:48:54 +00:00
Glenn Maynard
06853d3663
fixes, etc.
2002-12-18 06:44:56 +00:00
Glenn Maynard
66de45e43a
fixes
2002-12-14 00:22:18 +00:00
Glenn Maynard
2de143f14e
add new sound code
2002-12-13 07:44:34 +00:00