Commit Graph

92 Commits

Author SHA1 Message Date
Glenn Maynard 984c6d4b7c SoundReader::OpenFile 2003-09-10 21:33:46 +00:00
Glenn Maynard 40d4f18c55 resolve sound paths 2003-09-03 00:20:35 +00:00
Glenn Maynard d363ddd885 cleanup, comment 2003-08-20 18:15:49 +00:00
Glenn Maynard d27eb82dc4 Fix error handling crashes. 2003-08-12 18:29:35 +00:00
Chris Danford 426930692a fix song rate choosing 2003-08-07 06:08:29 +00:00
Steve Checkoway 70ef61d74b Removed the last of the integer comparison warnings 2003-08-01 22:12:28 +00:00
Glenn Maynard a44b6d0a86 remove unneeded header 2003-07-12 20:42:08 +00:00
Chris Danford c67d78d948 let Actor subclasses have first crack at parsing commands
allow Models and BitmapTexts in BGAnimationLayer (detected through file extension)
add RageModelVertex, which doesn't have a color property
add "stretch" file name hint for textures
2003-07-07 01:29:18 +00:00
Chris Danford e68bd0a3e6 add "loop" file name hint for sounds 2003-07-05 22:02:42 +00:00
Glenn Maynard 53f99f47bc add OGG_ONLY 2003-06-22 02:14:29 +00:00
Glenn Maynard 3070e317c7 use RageSoundReader_FileReader.h 2003-06-22 02:08:03 +00:00
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