Andrzej Kapolka
e04f7eb1f8
Unbind buffer from source before we attempt to delete it, allow
...
re-resolving clips waiting to be unloaded.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4155 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-29 02:53:50 +00:00
Andrzej Kapolka
4415b88e60
Keep track of the number of bound sources in ClipBuffer so that we don't
...
try to delete a buffer that's still bound to a source.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 22:35:17 +00:00
Michael Bayne
98bbe02560
Don't freak out preloading clips if the manager failed to initialize.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 05:11:40 +00:00
Andrzej Kapolka
8de54d537c
Update state when buffers are processed so that we know when streams
...
end. Added an isPlaying method to check state.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4125 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-18 20:55:45 +00:00
Michael Bayne
9d84542e49
Add support for a base gain level to be applied to all sound effects.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-17 19:05:39 +00:00
Andrzej Kapolka
0224c33c45
Update streams in reverse order so that they can dispose of themselves
...
safely.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-15 04:04:06 +00:00
Andrzej Kapolka
a9567278ea
Added ability to perform simple file queueing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 02:09:54 +00:00
Andrzej Kapolka
790ddafb30
On second thought, cancel that; since we're not unbinding and rebinding,
...
there's no point in keeping the data buffers around.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 00:01:42 +00:00
Andrzej Kapolka
10c6d854f5
Added support for Ogg clips, which are decompressed when bound.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4110 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 23:44:11 +00:00
Andrzej Kapolka
b804f12d5d
Basic mechanisms for fading in and out.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 21:12:44 +00:00
Andrzej Kapolka
e732fe48aa
Added support for streaming Ogg files. Cross-fading still to come.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 19:47:40 +00:00
Michael Bayne
b31556e388
We need to dispose() our clip buffers on the main thread.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4095 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 16:51:48 +00:00
Michael Bayne
f07c7307c9
Cope if something in the underlying sound system freaks out.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 23:26:33 +00:00
Michael Bayne
bb19beb053
Cope more gracefully when we can't access the sound device.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4070 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 22:24:38 +00:00
Michael Bayne
e0395bc0fc
Removed extraneous whitespace.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4036 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-19 02:40:05 +00:00
Michael Bayne
79be7ebd1b
Added support for observing sound resolution; type-safetified.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4021 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-14 18:34:08 +00:00
Michael Bayne
dd2468b140
Javadoc tidying up.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3725 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-08 22:21:19 +00:00
Michael Bayne
1afa3712fb
Cope with failing to initialize the sound system.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:29:47 +00:00
Michael Bayne
46220291eb
Moved the WaveData clip provider into its own class.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3673 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 20:34:35 +00:00
Michael Bayne
d668c91b9b
Use the new LRUHashMap removal observer mechanism.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3672 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 20:26:01 +00:00
Michael Bayne
064f18deb7
Fixed comment; added proper cache size adjustment.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3670 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 03:20:14 +00:00
Michael Bayne
9d3eb07c06
A new sound system based on OpenAL. Only supports sound effects at the
...
moment, but OpenAL has the necessary business to later integrate "streams"
of audio (music).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 03:12:16 +00:00