Commit Graph
81 Commits
Author SHA1 Message Date
Glenn Maynard 201cc449bd remove m_fVolume 2007-01-27 07:29:22 +00:00
Glenn Maynard 1bf9de3543 float 2007-01-27 07:18:52 +00:00
Glenn Maynard db674f125f init normally, with the rest 2007-01-19 02:40:07 +00:00
Glenn Maynard 38a2c6d5c2 init m_iMaxHardwareFrame 2007-01-19 01:28:13 +00:00
Glenn Maynard f8c19d688d clarify 2007-01-18 09:28:05 +00:00
Glenn Maynard 5486753c90 RageSoundDriver 2007-01-18 09:20:56 +00:00
Glenn Maynard d6efbc455c This isn't safe; RageSoundDriver::StopMixing skips to HALTING. The decoder thread shouldn't hold the lock long anymore, since reading data should be nonblocking (readers at this point are either preloaded, or have a threaded buffer). 2007-01-18 07:32:41 +00:00
Steve Checkoway 941c11b55e Windows can't handle standard format specifiers... 2006-12-30 04:27:36 +00:00
Steve Checkoway c7baf0f7bd Initialize to zero. 2006-12-30 04:23:24 +00:00
Steve Checkoway 45659961ce Casting to ints produces incorrect results when the number is larger than 2^32. 2006-12-30 04:16:21 +00:00
Glenn Maynard bc097b6b03 clamp hardware frames in RageSoundDriver, instead of in each sound 2006-12-23 10:53:39 +00:00
Glenn Maynard 98a3d5f856 more consistent code path: call SoundIsFinishedPlaying when the driver stops mixing, even if it's due to RageSoundDriver::StopMixing 2006-12-23 10:32:37 +00:00
Glenn Maynard cc55d56948 remove unused m_iSoundID 2006-12-23 09:51:50 +00:00
Glenn Maynard fe05072aa8 handle position queuing within RageSoundDriver; this eliminates
an awkward dependency on RageSoundManager
2006-12-23 09:45:15 +00:00
Glenn Maynard 3faec793db stop on any error 2006-12-23 03:47:38 +00:00
Glenn Maynard 6531fb0013 transition: move RageSound_Generic_Software logic into RageSoundDriver 2006-12-22 22:43:24 +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 4dd1f97875 remove unused 2006-12-22 21:56:02 +00:00
Glenn Maynard ae6fd617ab restore comment 2006-12-22 21:51:51 +00:00
Glenn Maynard 25d63192f5 simplify 2006-12-22 21:50:58 +00:00
Glenn Maynard 2c811073d6 remove comment 2006-12-22 21:49:53 +00:00
Glenn Maynard 9a29ffb77d remove min_fill_frames, min_streaming_buffer_size; handled by ThreadedBuffer 2006-12-22 21:49:05 +00:00
Glenn Maynard b1dd8f2084 comment 2006-12-22 21:31:24 +00:00
Glenn Maynard 3deabcbe2f handle WOULD_BLOCK 2006-12-22 21:30:14 +00:00
Glenn Maynard 1683b9951a RSGS::GetDataForSound also like Read 2006-12-22 21:28:16 +00:00
Glenn Maynard 24624a5c92 GetDataToPlay API more like RSR::Read 2006-12-22 21:24:19 +00:00
Glenn Maynard 1b18090e90 remove ReachedEOF 2006-12-22 21:18:29 +00:00
Glenn Maynard bfed0b6f83 always go into PLAYING 2006-12-22 21:17:34 +00:00
Glenn Maynard 0f76adec67 GetSampleRate(int) -> GetSampleRate(); one sample rate
per driver
2006-12-13 09:13:41 +00:00
Steve Checkoway 996385f795 All subclasses to get float data. 2006-12-11 13:54:39 +00:00
Glenn Maynard c835b2b01b code style 2006-12-07 07:32:31 +00:00
Glenn Maynard 01458632f8 simplify 2006-12-06 06:17:51 +00:00
Glenn Maynard 94b1849a29 assert for bad sample rate 2006-12-06 06:11:49 +00:00
Glenn Maynard 03ce23e9ea ARRAYLEN 2006-09-18 23:27:09 +00:00
Glenn Maynard 62c114b49e remove param 2006-08-21 00:20:13 +00:00
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