Commit Graph
83 Commits
Author SHA1 Message Date
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard ee14402dd8 remove unused 2005-12-23 05:21:32 +00:00
Glenn Maynard 3a77a52dba this only returns bool; fix comment 2005-11-23 18:52:49 +00:00
Glenn Maynard 7a67264ece remove GetVolume 2005-10-23 07:05:33 +00:00
Glenn Maynard 03cb8bda22 remove unused 2005-10-19 11:47:56 +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 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 935675cef6 cleanup 2005-06-08 21:22:08 +00:00
Glenn Maynard 55f47ff85c style cleanup 2005-06-08 04:47:03 +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 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
Glenn Maynard cca289bcf9 remove unused stuff 2004-11-15 18:24:50 +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
Glenn Maynard 1b02c6d494 remove m_FadedOutAt; didn't like the effect produced 2004-09-23 12:23:24 +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 ed2939b205 IsStreamingFromDisk 2004-08-21 07:01:54 +00:00
Glenn Maynard 13104cc6e7 type fix 2004-06-11 19:39:32 +00:00
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00
Glenn Maynard dd7336185d catch out of order position returns from sound drivers early and handle
them sanely
2004-04-20 05:59:40 +00:00
Glenn Maynard 7ffad5c4f6 cleanup 2004-04-20 03:55:36 +00:00
Glenn Maynard b925b61654 fix lock ordering
all sounds are now deleted in the main thread
2004-04-16 22:28:01 +00:00
Glenn Maynard 1875901837 Rewrite sound locking. Having a single global mutex for the sound system
is causing contention, leading to skips.  A detail on this is probably
coming to -devs soon ... (this will break the ALSA hw driver compile until
I update it; an hour or so)
2004-04-13 00:04:09 +00:00
Glenn Maynard b21fd54b8e split out RageSoundPosMap (too much code in RageSound) 2004-04-11 04:51:03 +00:00
Glenn Maynard 0b0db1cbe0 s/position/decode_position/ 2004-04-11 04:01:07 +00:00
Glenn Maynard 5fd6938bd0 remove RageSoundBase::StopPlaying 2004-04-07 08:06:36 +00:00
Glenn Maynard fb5be14eeb add RageSound::SoundIsFinishedPlaying (replaces StopPlaying for
use from sound drivers)
2004-04-07 04:10:26 +00:00
Glenn Maynard 37de4a8898 Add RageSoundManager::StopPlayingSoundsForThisThread. We
need to stop playing the sounds that a thread started before exiting
the thread, or it causes unpredictable behavior with DirectSound.
2004-04-07 03:47:12 +00:00
Glenn Maynard fb6e5d1a2a don't use -1 as a sentinel position value; -1 is a valid frame number
improve GetPosition edge cases
2004-04-04 04:06:05 +00:00
Glenn Maynard dcb33fe120 split out GetDataToPlay from GetPCM 2004-03-18 03:30:36 +00:00
Glenn Maynard 6ea531d584 give each RageSound instance a unique ID 2004-03-18 01:31:34 +00:00
Glenn Maynard be03ed1c21 Pass RageSoundParams to Play() (or SetParams). This should help fix
the long-standing ambiguity of "what happens if parameters are changed
for a second copy of a sound when a first is still playing".
2004-02-28 02:09:46 +00:00
Glenn Maynard 71d1380951 make RageSoundParams available 2004-02-28 01:02:06 +00:00
Glenn Maynard 0c19d92dbf fix frame vs sample names
move sound params into a private struct
2004-02-28 00:14:16 +00:00
Glenn Maynard 8b149bd832 add balance (panning) support 2004-02-27 23:26:55 +00:00
Glenn Maynard b28c406879 per-sample volume 2004-01-22 06:52:44 +00:00
Glenn Maynard 040bba5a8c 64-bit frame counts, so we don't get confused when frame counts
pass 2^31 (takes about 13 hours)
2004-01-19 22:21:02 +00:00
Glenn Maynard ce6b11a343 RageSound::CleanPosMap 2004-01-19 20:37:14 +00:00
Glenn Maynard 74e1b8e276 accurate sound position timestamps 2004-01-18 04:01:52 +00:00
Glenn Maynard 7676ccf397 split RageSound::SearchPosMap 2004-01-18 02:07:58 +00:00
Glenn Maynard 3633d424d7 s/RageDriverSound/RageSoundBase/ 2004-01-15 02:31:09 +00:00
Glenn Maynard bdafe9ebe1 expose a simpler interface for drivers 2004-01-15 02:28:58 +00:00
Glenn Maynard cad991074a split out, clean up and template CircBuf 2004-01-14 09:38:14 +00:00
Glenn Maynard fd6c729f51 add StartTime, GetPositionSeconds(*approximate) 2004-01-10 10:41:29 +00:00
Glenn Maynard b532617434 simplify 2003-10-03 09:00:02 +00:00
Glenn Maynard 036fd2beb9 Fix: don't chop off the first 26ms of each MP3 (but don't change sync,
either).
2003-10-02 04:56:09 +00:00
Glenn Maynard 3927a953ac remove header 2003-07-26 23:14:37 +00:00
Glenn Maynard 8f729668ec remove header 2003-07-26 23:13:11 +00:00