Commit Graph
46 Commits
Author SHA1 Message Date
Steve Checkoway a07e194cf1 Revert. Fixes Linux build. 2006-07-18 05:51:37 +00:00
Jason Felds 366c3440d4 Fix VC8 macro redef warning. (more to come) 2006-07-18 03:56:37 +00:00
Steve Checkoway 8d82bdfb82 Do not allocate or deallocate memory in the mixing thread. Doing so can block that thread which is possibly a realtime thread. Distinguish between STOPPED and AVAILABLE. In the STOPPED state, the memory for the sound is still around. It will be deallocated in Update() at which time the state will change to AVAILABLE.
The BUFFERING state is to keep all other threads from accessing the sound while StartMixing() is prebuffering. It corresponds to the old state STOPPED with available set to false.
2006-06-19 06:43:43 +00:00
Glenn Maynard 3a70b367c0 temporary fix for crash (proper fix will take more time) 2006-06-11 19:07:54 +00:00
Chris Danford 7b345b5c75 make volume changes affect playing sounds 2005-10-02 08:35:46 +00:00
Glenn Maynard 13da77d5c2 only pause playing sounds; unpause sound slot after stopping 2005-03-11 00:28:16 +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 67c1e5c6fb make sure we don't access snd after stopping 2005-01-05 00:03:00 +00:00
Glenn Maynard 4fbd89dd7d fix comment 2005-01-04 23:48:31 +00:00
Glenn Maynard b32bb5743a fix some audio skips: cap at 4x fill, not 2x 2005-01-03 10:31:59 +00:00
Glenn Maynard 5bf62b2bc8 don't output diagnostics when not used 2004-12-01 19:18:58 +00:00
Glenn Maynard 7f7999e098 update 2004-10-24 03:14:57 +00:00
Glenn Maynard b918e1cf52 RageSoundMixBuffer.h 2004-10-24 03:06:28 +00:00
Chris Danford 6fd5183134 more "for" scope fixes 2004-09-25 05:10:10 +00:00
Glenn Maynard 2d6e9fecd7 fix prebuffering logic 2004-08-29 01:50:17 +00:00
Glenn Maynard 9d4ccdafbf comment 2004-08-24 22:24:06 +00:00
Steve Checkoway 60983ee8cc Fix warning. 2004-08-22 22:57:29 +00:00
Glenn Maynard 29c1393a7d bigger buffer for streaming sounds 2004-08-21 07:05:32 +00:00
Glenn Maynard 00bf5e9639 implement decode buffer fill rate clamping 2004-08-21 06:53:26 +00:00
Glenn Maynard 9c23f35047 allocate buffer on demand 2004-08-21 06:09:19 +00:00
Glenn Maynard aa726c9d2c fix prebuffering 2004-08-14 02:39:35 +00:00
Glenn Maynard 512d5d1b3f get rid of frames_read and frames_written; this should get rid of a small
class of possible internal desyncs, and save a little memory (~100k)
2004-07-24 05:23:47 +00:00
Steve Checkoway 72b4599cd3 Remove CHECKPOINT, a disproportionate amount of time is spent in there. 2004-07-02 07:10:39 +00:00
Steve Checkoway a613d4d9fa s/RAGE_ASSERT/ASSERT/ 2004-06-16 00:38:31 +00:00
Glenn Maynard b115a685d9 only count g_TotalAhead when we're ahead 2004-06-06 05:02:39 +00:00
Glenn Maynard b5c3cf2e50 debugging 2004-05-19 03:40:08 +00:00
Glenn Maynard aa73bb0444 license update 2004-05-15 20:28:17 +00:00
Glenn Maynard ffa11ae045 compile fix 2004-05-13 21:18:00 +00:00
Glenn Maynard 9dfcb5b7e1 convert sound types 2004-05-11 20:32:55 +00:00
Glenn Maynard 1090b94fc6 log mixing underruns
remove potential raced ASSERT
2004-04-22 06:22:30 +00:00
Glenn Maynard 534bdc8dab cleanup 2004-04-19 21:11:53 +00:00
Glenn Maynard 1e1ae8c53d fix data being read in HALTING 2004-04-19 21:09:15 +00:00
Glenn Maynard 2a2c43b88e cleanup 2004-04-19 21:07:14 +00:00
Glenn Maynard 0e396e32c4 Rewrite sound locking. 2004-04-13 00:05:35 +00:00
Glenn Maynard 8939214912 use SoundIsFinishedPlaying; simplify 2004-04-07 04:21:09 +00:00
Glenn Maynard 3462de7511 fix waveout underruns cascading into decode underruns because the
decode buffer is smaller than the writeahead
2004-04-06 23:18:40 +00:00
Glenn Maynard a253dd8290 reserve a few more blocks 2004-04-05 23:19:05 +00:00
Glenn Maynard 93a31d7b22 StartDecodeThread() 2004-04-03 01:26:39 +00:00
Glenn Maynard 213bc83ca4 add assert 2004-04-03 01:25:04 +00:00
Glenn Maynard b6c090995d fix "Assertion 'thr != NULL' failed" 2004-04-03 01:23:07 +00:00
Glenn Maynard 1060269709 add StartDecodeThread to fix potential GetSampleRate race
(will break sound drivers until I update them)
2004-04-02 21:28:06 +00:00
Glenn Maynard 02fa396548 frames 2004-03-26 03:15:27 +00:00
Glenn Maynard a37645f421 fewer chunks 2004-03-24 06:10:38 +00:00
Chris Danford 31ae7c6fc0 fix VC6 compile error 2004-03-19 03:53:19 +00:00
Glenn Maynard 5224689df7 fix warning 2004-03-18 04:15:01 +00:00
Glenn Maynard 82ac2755b9 add base class for generic software-mixing sound drivers 2004-03-18 04:12:41 +00:00