Commit Graph

208 Commits

Author SHA1 Message Date
Glenn Maynard a9ac27c730 move SoundResampleQuality into RageSoundReader_Resample 2005-10-27 16:51:18 +00:00
Glenn Maynard 7a67264ece remove GetVolume 2005-10-23 07:05:33 +00:00
Glenn Maynard 8b34d6eef8 cleanup 2005-10-23 07:04:55 +00:00
Glenn Maynard 03cb8bda22 remove unused 2005-10-19 11:47:56 +00:00
Chris Danford 7bfa77f9ac mute before starting the sound. Fixes little pops. 2005-10-13 22:10:40 +00:00
Chris Danford ced0a0c6e9 fix transition sounds playing when attract sounds are off 2005-10-13 22:07:40 +00:00
Glenn Maynard 643da8e2ce Apply m_bIsCriticalSound permanently on play, so we don't start playing previously
muted sounds when GetPlayOnlyCriticalSounds changes.  Fixes background music
playing for a split second in some sound drivers when start is pressed during attract.
2005-10-04 07:35:35 +00:00
Chris Danford 15880eafd6 When in attract and not playing attract sounds, have SOUNDMAN only play sounds with RageSoundParams.m_bCriticalSound == true.
Currently, only the coin sound has RageSoundParams.m_bCriticalSound = true.
2005-10-04 06:51:06 +00:00
Chris Danford a1cc399f3f mute attract sounds inside of RageSound and don't mute everywhere that a sound might possibly be used in an attract screen 2005-10-03 23:54:40 +00:00
Chris Danford 7b345b5c75 make volume changes affect playing sounds 2005-10-02 08:35:46 +00:00
Glenn Maynard 2f3905325d style cleanup 2005-09-23 00:12:32 +00:00
Glenn Maynard 9ef48d4a48 reuse preloaded sounds 2005-07-18 19:09:31 +00:00
Steve Checkoway c1f4c33fb9 Fix format string. 2005-06-19 00:21:48 +00:00
Glenn Maynard 55f47ff85c style cleanup 2005-06-08 04:47:03 +00:00
Glenn Maynard 6c1a16e61d assertions -> warnings 2005-06-08 04:16:03 +00:00
Chris Danford e389ba6191 convert the rest to use Preference 2005-05-16 09:36:32 +00:00
Chris Danford c45c229995 cleanup: don't cast bool to int 2005-03-16 04:10:10 +00:00
Glenn Maynard ef68b4acdd Working on clean pausing support. (This will break the ALSA and DSound hardware builds until they're updated, soon.) 2005-03-10 22:49:28 +00:00
Glenn Maynard 7ac35530e9 comment 2005-01-20 01:49:04 +00:00
Glenn Maynard 0979c9dcee const 2004-12-04 21:20:02 +00:00
Chris Danford 6181e142dc add metric to put timer in stealth mode 2004-12-04 21:13:29 +00:00
Ryan Dortmans d1a1bb4e88 Xbox: Fix exception handling 2004-11-18 09:08:48 +00:00
Glenn Maynard 9bc770c83f FlushPosMapQueue optimization 2004-11-15 19:11:57 +00:00
Glenn Maynard cca289bcf9 remove unused stuff 2004-11-15 18:24:50 +00:00
Glenn Maynard f15246cba8 don't stop copies on stop and destruction; just the master copy
- this may come back, but if it does, the list of copied sounds should be stored inside RageSound itself
remove registration of playing sounds; the need is going away
2004-11-15 04:43:42 +00:00
Glenn Maynard 8770ff7c8d fix error handling for mono sounds 2004-11-14 20:21:04 +00:00
Glenn Maynard 6e602f89c9 preload after resample, not before 2004-11-14 04:29:33 +00:00
Ryan Dortmans 30a01a3c99 Xbox: virtual memory fixes 2004-11-08 02:38:32 +00:00
Glenn Maynard 36f788dcc7 split simple sound utils 2004-10-25 01:53:19 +00:00
Glenn Maynard bc8bd43b9e split ConvertMonoToStereoInPlace 2004-10-25 00:49:42 +00:00
Glenn Maynard c85de593f9 s/SoundReader_Preload/RageSoundReader_Preload/
split RageSoundReader_Preload::PreloadSound
split RageSound::LoadSoundReader
2004-10-24 19:25:21 +00:00
Chris Danford 09193d9e4b cleanup:
use references when passing NoteData
  Have player own a NoteDataWithScoring, not derive from it
2004-10-23 17:43:49 +00:00
Glenn Maynard 1b02c6d494 remove m_FadedOutAt; didn't like the effect produced 2004-09-23 12:23:24 +00:00
Glenn Maynard 9dbfc3ace1 fade fix 2004-09-23 09:31:12 +00:00
Glenn Maynard 4a17c3d725 If m_LengthSeconds is longer than the actual file, pad with silence; this way,
if looping, the sound will loop exactly once every m_LengthSeconds.  This should
fix obscure beat alignment problems if sample music ends at the end of the file,
since before, extending the length beyond the end of the file didn't do anything.

Fix m_FadeLength.  The length was being ignored.

Add m_FadedOutAt; this way, if beat alignment extends a 10-second clip at the
end of a file by .5 seconds, we can fade out 9..10, instead of 9.5 ... 10.5,
which would cause the sound to cut out early.
2004-09-23 09:10:04 +00:00
Glenn Maynard d6d3a3ccc5 typo 2004-09-08 00:36:30 +00:00
Glenn Maynard 197b54dd8b AdjustBalance -> PanSound; balance and panning aren't the same thing 2004-08-29 03:21:45 +00:00
Glenn Maynard 78b019fe0c fix mono->stereo conversion 2004-08-26 20:01:43 +00:00
Glenn Maynard 8fb41ed93c clamp "lesser position" output 2004-08-24 23:51:43 +00:00
Glenn Maynard ed2939b205 IsStreamingFromDisk 2004-08-21 07:01:54 +00:00
Glenn Maynard 4efa41dba5 reduce RageSound internal buffering; maybe this can go away, since all drivers buffer properly now ... 2004-08-15 04:31:19 +00:00
Glenn Maynard 69cf82de49 handle mono 2004-07-24 02:01:12 +00:00
Glenn Maynard 9f4f314f7a assert 2004-07-17 22:20:42 +00:00
Glenn Maynard 28d25210a2 asserts 2004-07-17 22:03:41 +00:00
Glenn Maynard 85fb6e85d2 don't throw on failed sound load 2004-06-17 01:22:47 +00:00
Steve Checkoway a613d4d9fa s/RAGE_ASSERT/ASSERT/ 2004-06-16 00:38:31 +00:00
Glenn Maynard dd4bc636f4 cleanups 2004-06-13 20:03:18 +00:00
Glenn Maynard 3119833bae types 2004-05-11 21:08:13 +00:00
Glenn Maynard a5cc8adfef fix mostly innocuous race condition: init ID before registering the sound,
or it might get sound position commits from other sounds due to the
uninitialized variable
2004-05-08 20:42:33 +00:00
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00