Commit Graph

145 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 7e8e8aed36 Use RageSound::DeleteSelfWhenFinishedPlaying(). 2007-01-18 08:18:00 +00:00
Glenn Maynard 984bba5326 remove unused 2007-01-18 07:36:47 +00:00
Glenn Maynard ff8237c56b set start position in RageSound::StartPlaying 2006-12-23 22:28:17 +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 f2e0053c7d Make* -> Driver::Create. Having these floating in arch.h isn't
useful; if you create the class, you need the class definition to
free it, and anyone creating a class is probably going to use it,
too.
2006-12-17 08:00:03 +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 0f76adec67 GetSampleRate(int) -> GetSampleRate(); one sample rate
per driver
2006-12-13 09:13:41 +00:00
Glenn Maynard f75a281c18 GetPosition(pSound) -> GetPosition(); one hardware sound position
per driver
2006-12-13 09:10:08 +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
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Glenn Maynard 43a9f7b451 simplify 2006-10-20 09:35:38 +00:00
Steve Checkoway 6ea2a41b00 Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible. 2006-09-17 01:19:19 +00:00
Glenn Maynard 8980bd6a27 remove param 2006-08-21 00:20:14 +00:00
Glenn Maynard 62c114b49e remove param 2006-08-21 00:20:13 +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 75d2dfadd9 cleanup 2005-12-30 19:12:10 +00:00
Glenn Maynard 08dd174e5c RageSoundManager::AttenuateBuf -> RageSoundUtil::Attenuate
comment
2005-12-30 19:03:09 +00:00
Chris Danford 74749a19bb move localized string to separate file 2005-12-22 03:10:04 +00:00
Chris Danford d698a5f1ec CString -> RString in RageUtil
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00
Chris Danford 9cd3b4d4ba theme some common exception strings 2005-12-20 02:45:25 +00:00
Chris Danford 591d9e4aca fix error 2005-10-07 07:12:35 +00:00
Chris Danford e80dcafbdd tracking down volume related assert 2005-10-07 05:29:33 +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 f7af079f63 noisy 2005-07-18 19:49:46 +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 598a3d86b3 cleanup 2005-04-25 09:37:33 +00:00
Ben Anderson 167e5aebc0 Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. (note: I apparently don't know much about CVS, it appears that some files might not make it into the repository; hang tight, I'm trying to find a solution.) 2005-03-15 00:30:26 +00:00
Ben Anderson 0db665d4d6 Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory. 2005-03-14 06:44:38 +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 26bae5f769 add DeleteSoundWhenFinished, PlayCopyOfSound 2005-01-08 16:58:37 +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 ebf9981cfd compile fix 2004-11-15 18:18:07 +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 4a615a8d1e remove GetPlayingSounds 2004-11-15 05:18:50 +00:00
Glenn Maynard 6e0a17d42c hack to not confuse GetCopies no longer needed 2004-11-15 05:15:51 +00:00
Glenn Maynard 36e7a78ea6 remove RegisterPlayingSound, UnregisterPlayingSound 2004-11-15 05:15:06 +00:00