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
Glenn Maynard
e990931b61
remove GetCopies
2004-11-15 05:05:31 +00:00
Glenn Maynard
4d2503c386
remove StopPlayingAllCopiesOfSound
2004-11-15 04:54:48 +00:00
Glenn Maynard
de5c504191
RageSoundManager::StopPlayingSoundsForThisThread
2004-11-15 04:53:15 +00:00
Glenn Maynard
57002035fd
cleanup
2004-11-14 21:04:09 +00:00
Ryan Dortmans
30a01a3c99
Xbox: virtual memory fixes
2004-11-08 02:38:32 +00:00
Glenn Maynard
35bdf452dd
split RageSoundMixBuffer into its own file
2004-10-24 03:05:57 +00:00
Glenn Maynard
433827c2de
remove ProtAllocator hack
2004-10-15 21:44:23 +00:00
Steve Checkoway
44174a8fa7
Unused function.
2004-09-09 08:51:07 +00:00
Glenn Maynard
a5eed9dfa5
vc6 workaround
2004-06-06 01:48:53 +00:00
Glenn Maynard
89cc0b9391
fix crash
...
remove unneeded include
2004-06-05 01:56:51 +00:00
Glenn Maynard
2ccea8dcf6
very temporary hack to try to track down all_sounds corruption
2004-06-05 01:04:17 +00:00
Glenn Maynard
59412b533e
const fix
2004-05-25 04:28:25 +00:00
Glenn Maynard
838bb0aba4
remove catch() that's preventing us from getting complete backtraces to
...
unexpected sound driver exceptions
2004-05-23 21:13:19 +00:00
Glenn Maynard
9dfcb5b7e1
convert sound types
2004-05-11 20:32:55 +00:00
Glenn Maynard
8f6d7362ae
checkpoint
2004-05-09 08:27:20 +00:00
Glenn Maynard
f87bfe8b34
no, this is needed (but for a different reason)
2004-05-08 23:27:36 +00:00
Glenn Maynard
732024f1a6
remove unneeded code
2004-05-08 20:54:29 +00:00
Glenn Maynard
f9f10e2372
more license updates
2004-05-06 02:40:33 +00:00
Glenn Maynard
712e1ec445
If a sound is started, plays for a while, then stopped, repositioned and
...
started quickly, queued position data from the previous play will still
be flushed. We clear already-flushed data in StopMixing (pos_map.clear())
so we don't have stale data, but some is being re-flushed afterwards because
we have the same ID. Change sound IDs when stopping a sound.
(The symptom was the first frame in Play mode in the editor would process
using an old position; the position was usually later in the song, which
sometimes marked hold notes as dead.)
2004-05-02 23:54:39 +00:00
Glenn Maynard
b48043dc2e
search all_sounds, not owned_sounds
2004-05-01 05:15:21 +00:00
Glenn Maynard
84ac4d3fc9
fix crash if a sound is played, copied, and then the parent is given over
...
to RageSoundManager; don't think this ever actually happens
2004-05-01 05:13:09 +00:00
Glenn Maynard
6ed0ad1953
noisy
2004-04-25 05:56:31 +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
28449f1ca2
fix race
2004-04-15 23:41:03 +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
67eb0be6b0
fix race condition
2004-04-11 01:03:18 +00:00
Glenn Maynard
82808801f2
fix crash
2004-04-07 20:17:49 +00:00
Glenn Maynard
837d2d03aa
fix RageSoundManager::Update in linux
2004-04-07 07:35: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
960bc1eaac
rename RageSoundManager::StopPlayingSound to RageSoundManager::StopPlayingAllCopiesOfSound
2004-04-07 03:42:14 +00:00
Glenn Maynard
058695b969
simplify: get rid of sounds_to_delete
2004-04-07 03:31:27 +00:00
Glenn Maynard
e779e80350
give RageMutexes names, so they can be identified more easily
2004-03-21 04:10:43 +00:00
Glenn Maynard
4c9be566f1
fix alloc error
2004-03-18 04:10:50 +00:00
Glenn Maynard
f59f22d1fd
RageSoundManager::CommitPlayingPosition, RageSoundManager::FlushPosMapQueue
2004-03-18 03:04:44 +00:00
Glenn Maynard
6ea531d584
give each RageSound instance a unique ID
2004-03-18 01:31:34 +00:00
Glenn Maynard
7c001d6370
add offset param to SundMixBuffer::write()
2004-03-18 01:23:35 +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
b3ede49d29
better locking
2004-01-22 23:21:07 +00:00