Commit Graph
45 Commits
Author SHA1 Message Date
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 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 960bc1eaac rename RageSoundManager::StopPlayingSound to RageSoundManager::StopPlayingAllCopiesOfSound 2004-04-07 03:42:14 +00:00
Glenn Maynard 058695b969 simplify: get rid of sounds_to_delete 2004-04-07 03:31:27 +00:00
Glenn Maynard f59f22d1fd RageSoundManager::CommitPlayingPosition, RageSoundManager::FlushPosMapQueue 2004-03-18 03:04:44 +00:00
Glenn Maynard 6ea531d584 give each RageSound instance a unique ID 2004-03-18 01:31:34 +00:00
Glenn Maynard 7c001d6370 add offset param to SundMixBuffer::write() 2004-03-18 01:23:35 +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 8ff6ad9bf5 SoundMixBuffer work 2004-01-21 10:32:01 +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 e2319874ac fix comments 2004-01-15 03:13:26 +00:00
Glenn Maynard 71e2f1d8d7 partial s/RageSound/RageSoundBase/ 2004-01-15 03:12:18 +00:00
Glenn Maynard 97d088db50 remove RageSoundManager::PlayOnceFromDir (in SOUNDS now) 2004-01-15 02:56:04 +00:00
Glenn Maynard fed157e934 use RageSoundBase 2004-01-15 02:33:41 +00:00
Glenn Maynard 8b6030e299 remove RageSoundManager::MixAudio 2004-01-15 01:46:09 +00:00
Glenn Maynard f25f68b3f5 add read( float * )
optimize full volume
2004-01-14 22:09:55 +00:00
Glenn Maynard f226bde635 remove "fake" sounds 2004-01-14 08:10:37 +00:00
Glenn Maynard db15c73035 cleanup 2004-01-14 08:07:42 +00:00
Glenn Maynard bbbb76d551 RageSound handles SOUNDMAN->playing_sounds itself 2004-01-14 08:00:51 +00:00
Glenn Maynard 6d4ddb2a2d simplify 2004-01-14 01:41:32 +00:00
Glenn Maynard 5228f9df9c sample rate update 2004-01-03 02:36:14 +00:00
Glenn Maynard 51d60e1db1 add RageSoundManager::AttenuateBuf 2003-10-22 03:39:52 +00:00
Glenn Maynard a47708b0b5 simplify and optimize SoundMixBuffer 2003-10-21 21:35:58 +00:00
Glenn Maynard a1b960be35 Allow read-only access to the lsit of currently-playing sounds. 2003-09-27 01:47:19 +00:00
Glenn Maynard 60e8ec708a remove stubs 2003-07-26 23:09:56 +00:00
Glenn Maynard cc0362bfa2 stub music calls until converted 2003-07-26 22:18:32 +00:00
Glenn Maynard 50fcf591d9 Add RageSoundManager::GetMusicPath.
RageSoundManager::PlayMusic: unload sounds when we stop playing.
2003-07-14 23:54:54 +00:00
Chris Danford e68bd0a3e6 add "loop" file name hint for sounds 2003-07-05 22:02:42 +00:00
Glenn Maynard 60921db8e5 Stop using basic_string for Sint32. We only use it in one place and it's
a bit of a performance hit there ...
2003-04-25 19:40:49 +00:00
Glenn Maynard 8d0ee06efa fix dependency 2003-04-23 19:49:51 +00:00
Glenn Maynard c194f42a3f add GetDriverSampleRate 2003-04-23 19:31:32 +00:00
Glenn Maynard 0d5cd0bc0f apparently it does want to be this way 2003-02-14 23:03:14 +00:00
Glenn Maynard dd06dddc75 use Sint32 char_traits correctly 2003-02-14 22:52:38 +00:00
Glenn Maynard 85d15e9976 use Sint32 char_traits 2003-02-14 22:50:38 +00:00
Glenn Maynard 76e1f7b8ba add separately controllable fade 2003-02-10 21:43:50 +00:00
Glenn Maynard 6cd9b429b7 abstract music completely 2003-01-21 02:16:40 +00:00
Glenn Maynard bfd2d10a15 properly abstract the volume so we don't touch prefsman in RSM
fixes crash
2003-01-19 19:55:24 +00:00
Glenn Maynard 6f91b6fa0a move stuff over 2003-01-02 08:13:34 +00:00
Glenn Maynard 2b7dad6766 make music public 2003-01-02 07:53:13 +00:00
Glenn Maynard ce07b8e997 add RageSoundManager::PlayMusic 2003-01-02 07:30:23 +00:00
Glenn Maynard fb71bacda7 better mixer 2002-12-31 01:09:31 +00:00
Glenn Maynard f7bf2ef2fa changed sound API 2002-12-22 08:13:33 +00:00
Glenn Maynard 2c0b7865d4 add fake sound support 2002-12-21 02:19:37 +00:00
Glenn Maynard b5f1ba9202 update 2002-12-13 08:31:39 +00:00
Glenn Maynard 2de143f14e add new sound code 2002-12-13 07:44:34 +00:00