Commit Graph
63 Commits
Author SHA1 Message Date
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
Glenn Maynard 8b8b0bd66a handle driver-specified sample rates 2003-04-24 23:51:05 +00:00
Glenn Maynard 30aa2a6822 Simplify: move vars out of a struct that's no longer used 2003-04-23 18:22:16 +00:00
Glenn Maynard bbf8067551 remove prebuffering from RageSound; let Preload handle it 2003-03-15 23:55:24 +00:00
Glenn Maynard e52887948f (c) footers 2003-03-15 23:27:34 +00:00
Glenn Maynard 76e1f7b8ba add separately controllable fade 2003-02-10 21:43:50 +00:00
Glenn Maynard a88f7688b7 fix jump when backing out of music 2003-01-25 09:01:42 +00:00
Glenn Maynard aa90ddfccd don't precache sounds by default
(makes loads faster and doesn't really matter for most things)
2003-01-21 02:44:35 +00:00
Glenn Maynard f6ef28fac5 drop LoadAndPlayIfNotAlready 2003-01-03 02:52:00 +00:00
Glenn Maynard 0effca1367 implement rate changing (more) correctly 2003-01-02 06:52:39 +00:00
Glenn Maynard 51c945c8c8 (this rate code isn't yet working) 2002-12-31 01:26:42 +00:00
Glenn Maynard e525a266df fixups and some not-yet-working rate code 2002-12-27 23:15:39 +00:00
Glenn Maynard f7bf2ef2fa changed sound API 2002-12-22 08:13:33 +00:00
Glenn Maynard 5f5db5d2ef use a deque for the pos_map; make it more dynamic 2002-12-21 02:08:49 +00:00
Glenn Maynard 878ebe7aae measure start and length in samples 2002-12-20 02:00:43 +00:00
Glenn Maynard 13fee58c65 better length handling 2002-12-20 01:45:41 +00:00
Glenn Maynard ead9944ac6 update 2002-12-19 04:08:38 +00:00
Glenn Maynard b3dbe5cf27 add query 2002-12-18 06:55:39 +00:00
Glenn Maynard 06853d3663 fixes, etc. 2002-12-18 06:44:56 +00:00
Glenn Maynard 2de143f14e add new sound code 2002-12-13 07:44:34 +00:00
Glenn Maynard 600371a871 RageSound -> RageSoundBass 2002-12-10 08:19:18 +00:00