Commit Graph

146 Commits

Author SHA1 Message Date
Glenn Maynard 960bc1eaac rename RageSoundManager::StopPlayingSound to RageSoundManager::StopPlayingAllCopiesOfSound 2004-04-07 03:42:14 +00:00
Steve Checkoway 20a8bab45c Clean up includes. 2004-04-05 05:22:32 +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 84617d0d29 cleanup 2004-03-26 03:38:27 +00:00
Glenn Maynard 1a775939a6 simplify 2004-03-26 03:29:44 +00:00
Glenn Maynard 4ba7e5451b GetData: take frames 2004-03-26 03:26:20 +00:00
Glenn Maynard 88025a50cb FillBuf: take frames 2004-03-26 03:19:55 +00:00
Glenn Maynard f5b3c5425e GetDataToPlay: take frames, not samples (use frames as a basic unit
of measuring sound buffer sizes whenever there's channel count available)
2004-03-26 03:13:57 +00:00
Glenn Maynard 9a74f9be01 optimizion for small chunksizes 2004-03-25 02:24:39 +00:00
Glenn Maynard dcb33fe120 split out GetDataToPlay from GetPCM 2004-03-18 03:30:36 +00:00
Glenn Maynard 5788f354e6 typo 2004-03-18 01:32:40 +00:00
Glenn Maynard 6ea531d584 give each RageSound instance a unique ID 2004-03-18 01:31:34 +00:00
Glenn Maynard eb86c76b9f Make CircBuf are lock-free, threadsafe buffer. (We don't actually
take advantage of this yet.)
2004-03-16 03:06:10 +00:00
Glenn Maynard e04b8bb457 fix stop mode 2004-02-28 02:47:15 +00:00
Glenn Maynard 9530cff9a6 better balance 2004-02-28 02:35:18 +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 e1ed217f78 store start/length in seconds instead of frames, so RageSoundParams
isn't tied to a sound
2004-02-28 00:35:29 +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 5b5834acba remove ResolvePath calls; this is done automatically and has been a noop
for a long time
2004-02-27 05:42:44 +00:00
Glenn Maynard 6acfd7a22e remove GetOffsetFix 2004-02-20 04:16:12 +00:00
Glenn Maynard d7be0781cc don't FillBuf in the main thread 2004-01-22 23:08:25 +00:00
Glenn Maynard b28c406879 per-sample volume 2004-01-22 06:52:44 +00:00
Glenn Maynard 268b7c1e76 fix warning 2004-01-22 06:14:58 +00:00
Glenn Maynard 2a7285ea77 lock in RageSound::Update 2004-01-22 06:13:31 +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 62227ce90d comments 2004-01-18 04:04:37 +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 829a7d133d lock cleanups 2004-01-15 01:17:47 +00:00
Glenn Maynard cad991074a split out, clean up and template CircBuf 2004-01-14 09:38:14 +00:00
Glenn Maynard bbbb76d551 RageSound handles SOUNDMAN->playing_sounds itself 2004-01-14 08:00:51 +00:00
Glenn Maynard 74352440c9 really fix warning 2004-01-12 22:17:43 +00:00
Glenn Maynard 29093a5308 fix warning 2004-01-12 22:13:36 +00:00
Glenn Maynard d7cae17107 debug 2004-01-12 01:02:18 +00:00
Glenn Maynard 2c0522ef88 debug 2004-01-11 09:58:55 +00:00
Glenn Maynard fd6c729f51 add StartTime, GetPositionSeconds(*approximate) 2004-01-10 10:41:29 +00:00
Glenn Maynard 2a7e2a7313 cleanup 2004-01-03 03:00:13 +00:00
Glenn Maynard 5228f9df9c sample rate update 2004-01-03 02:36:14 +00:00
Glenn Maynard 6ef9a21037 obscure boundry case timing tweaks 2003-12-18 10:28:20 +00:00
Glenn Maynard fdd8b4f955 Seamless underrun recovery (at least with ALSA). 2003-10-28 07:10:50 +00:00
Glenn Maynard efb6f4dcb1 Don't pretend the sound position is 0 when seeking past end of file. 2003-10-07 04:10:34 +00:00
Glenn Maynard b532617434 simplify 2003-10-03 09:00:02 +00:00
Glenn Maynard eb46c45567 Minor sync fix when using playback rates. 2003-10-03 08:48:34 +00:00
Glenn Maynard ea52eac8b4 noisy 2003-10-02 09:19:40 +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