Commit Graph
90 Commits
Author SHA1 Message Date
Glenn Maynard 75da18955d remove SOUNDMAN->PlayOnce 2007-01-18 09:05:13 +00:00
Glenn Maynard 9584ce2b41 remove RageSoundManager::PlayCopyOfSound 2007-01-18 08:48:06 +00:00
Glenn Maynard 32a9a47f87 remove RageSoundManager::PlaySound 2007-01-18 08:34:52 +00:00
Glenn Maynard 0e2fd55a8a remove DeleteSoundWhenFinished 2007-01-18 08:20:36 +00:00
Glenn Maynard 984bba5326 remove unused 2007-01-18 07:36:47 +00:00
Glenn Maynard fa9db049c1 remove unused 2006-12-23 10:10:28 +00:00
Glenn Maynard 50957c4a21 remove RageSoundManager::GetSoundByID 2006-12-23 09:56:18 +00:00
Glenn Maynard 7d822fb2bf remove RageSoundManager::FlushPosMapQueue, etc 2006-12-23 09:49:04 +00:00
Glenn Maynard bafea3b7ab GetPosition() -> GetHardwareFrame; handle timing retry in the driver,
so the logic is available to the driver
2006-12-22 22:22:01 +00:00
Glenn Maynard 95f72debdc remove pSound param 2006-12-13 09:17:48 +00:00
Glenn Maynard 2377925f41 remove iRate param 2006-12-13 09:15:29 +00:00
Glenn Maynard 7af5741c08 stream frames are 64-bit 2006-11-30 05:55:42 +00:00
Glenn Maynard f2b893939d SoundReader -> RageSoundReader 2006-11-29 02:20:10 +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
Glenn Maynard 8980bd6a27 remove param 2006-08-21 00:20:14 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 418bce60a8 SoundDrivers into RageSoundManager 2005-12-31 02:35:49 +00:00
Glenn Maynard 08dd174e5c RageSoundManager::AttenuateBuf -> RageSoundUtil::Attenuate
comment
2005-12-30 19:03:09 +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
Glenn Maynard 2493236cea add reference counting for preloaded sounds
This doesn't give full refcounting: loading a sound that isn't preloaded
will still go through a full load (eg. initting Vorbis, etc).  This handles the
most expensive case, where the whole sound is loaded.  This case is
easy because we can make free copies, and track the number of copies
remaining to handle cleanup.
2005-07-18 19:08:28 +00:00
Glenn Maynard 14a3b69f84 style updates 2005-07-03 04:03:46 +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 0e8b4b8371 comments, cleanup 2005-02-13 03:21:22 +00:00
Glenn Maynard 26bae5f769 add DeleteSoundWhenFinished, PlayCopyOfSound 2005-01-08 16:58:37 +00:00
Glenn Maynard 9bc770c83f FlushPosMapQueue optimization 2004-11-15 19:11:57 +00:00
Glenn Maynard ca62f3d94f Add optional Shutdown() call, to shut down the driver before deleting
SOUNDMAN.

Remove g_DeletionMutex; no longer needed.
2004-11-15 05:22:39 +00:00
Glenn Maynard 9c3a20dfc1 remove playing_sounds 2004-11-15 05:19:38 +00:00
Glenn Maynard 4a615a8d1e remove GetPlayingSounds 2004-11-15 05:18:50 +00:00
Glenn Maynard 36e7a78ea6 remove RegisterPlayingSound, UnregisterPlayingSound 2004-11-15 05:15:06 +00:00
Glenn Maynard e990931b61 remove GetCopies 2004-11-15 05:05:31 +00:00
Glenn Maynard 4d2503c386 remove StopPlayingAllCopiesOfSound 2004-11-15 04:54:48 +00:00
Glenn Maynard de5c504191 RageSoundManager::StopPlayingSoundsForThisThread 2004-11-15 04:53:15 +00:00
Glenn Maynard 57002035fd cleanup 2004-11-14 21:04:09 +00:00
Glenn Maynard 35bdf452dd split RageSoundMixBuffer into its own file 2004-10-24 03:05:57 +00:00
Glenn Maynard 433827c2de remove ProtAllocator hack 2004-10-15 21:44:23 +00:00
Chris Danford b2cf196d74 fixing Xbox compile errors 2004-06-15 06:24:58 +00:00
Glenn Maynard a5eed9dfa5 vc6 workaround 2004-06-06 01:48:53 +00:00
Glenn Maynard 2ccea8dcf6 very temporary hack to try to track down all_sounds corruption 2004-06-05 01:04:17 +00:00
Glenn Maynard 838bb0aba4 remove catch() that's preventing us from getting complete backtraces to
unexpected sound driver exceptions
2004-05-23 21:13:19 +00:00
Glenn Maynard 56d421a186 unneeded includes 2004-05-11 21:16:59 +00:00
Glenn Maynard 9dfcb5b7e1 convert sound types 2004-05-11 20:32:55 +00:00
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00
Glenn Maynard 712e1ec445 If a sound is started, plays for a while, then stopped, repositioned and
started quickly, queued position data from the previous play will still
be flushed.  We clear already-flushed data in StopMixing (pos_map.clear())
so we don't have stale data, but some is being re-flushed afterwards because
we have the same ID.  Change sound IDs when stopping a sound.

(The symptom was the first frame in Play mode in the editor would process
using an old position; the position was usually later in the song, which
sometimes marked hold notes as dead.)
2004-05-02 23:54:39 +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 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