Commit Graph

225 Commits

Author SHA1 Message Date
Glenn Maynard e2923274f4 Insert -> CommitPosition 2006-11-26 18:44:06 +00:00
Glenn Maynard a3a0b16bad "PlayTheSound"? Don't rename functions to ridiculous things like that. This works fine in VC7 and VC8, so I'm reverting it. Ask before making ugly changes. 2006-11-19 00:41:50 +00:00
Jason Felds 2202eb8547 Workaround for Windows API issues (PlaySound -> PlaySound[A/U] bug). Thank rikai for testing on Linux. Untested on Mac right now. 2006-11-18 17:31:18 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Glenn Maynard da024345f3 cleanup 2006-10-27 05:53:23 +00:00
Glenn Maynard ba1daf8183 annoying log 2006-09-12 22:01:59 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 66fd1baca2 cleanup 2005-12-23 05:31:27 +00:00
Glenn Maynard eb151cf9d3 remove XXX: Fail() is no longer tricky 2005-12-23 05:24:23 +00:00
Glenn Maynard 443e80551f prefer standard find() over Find 2005-12-21 08:27:00 +00:00
Glenn Maynard a42177e5df remove old comments: this is all in RageSoundPosMap now 2005-11-23 19:03:04 +00:00
Glenn Maynard 217193ce45 fix old comments. This is a case where comments are a problem: these
comments fell behind the code.  In this case, it's better to use a better
name than "iSize" which indicates units, eg. "iBytes" or "iFrames", than
to explain the units in a comment.
2005-11-23 19:00:32 +00:00
Glenn Maynard 32e4c0ba6e cleanup 2005-11-23 18:58:25 +00:00
Glenn Maynard d868908941 fix comment more 2005-11-23 18:53:31 +00:00
Glenn Maynard 3a77a52dba this only returns bool; fix comment 2005-11-23 18:52:49 +00:00
Glenn Maynard 599636992e cleanup 2005-11-23 18:51:00 +00:00
Glenn Maynard 8f26a6c2ec the sound must not already be playing 2005-11-23 18:31:29 +00:00
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