15 Commits

Author SHA1 Message Date
Josh Holtrop
8dbcc0b043 import from git: added extra usage explanation, added -s command-line option to set multisample level, added a fallback to AV::start() to try multisample level of 1 if attempting samples>1 fails, fixed audio bug for combining multiple streams getting staticky, added documentation for joint and sound Lua member methods
git-svn-id: svn://anubis/anaglym/trunk@300 99a6e188-d820-4881-8870-2d33a10e2619
2010-08-06 01:56:27 +00:00
Josh Holtrop
854f14bf82 added volume parameter to AV::Sound objects, fixed playCallback mixing code
git-svn-id: svn://anubis/anaglym/trunk@293 99a6e188-d820-4881-8870-2d33a10e2619
2010-07-27 14:55:27 +00:00
Josh Holtrop
8b8a7eee1f AV now decodes sounds directly into a new buffer and then mixes that buffer into the final audio stream
git-svn-id: svn://anubis/anaglym/trunk@292 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-25 20:14:36 +00:00
Josh Holtrop
5bed8a2dfd replaced AV::Sound::pause() with AV::Sound::resume() -- play and loop now rewind but resume does not
git-svn-id: svn://anubis/anaglym/trunk@291 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-24 03:10:44 +00:00
Josh Holtrop
d4d44dea86 added AV::Sound::pause(), added Lua interface for sounds (play/pause/stop/loop/loopForever)
git-svn-id: svn://anubis/anaglym/trunk@290 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-24 02:46:28 +00:00
Josh Holtrop
ed1f9c8f7f rewrote AV::Sound::decode() to be much more scalable and handle looping without small breaks
git-svn-id: svn://anubis/anaglym/trunk@289 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-24 02:14:37 +00:00
Josh Holtrop
8a49a5089e implemented sound looping, need to clean up decode() to handle it more smoothly
git-svn-id: svn://anubis/anaglym/trunk@288 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-23 19:32:05 +00:00
Josh Holtrop
a3559623ed added mutex around m_active_sounds
git-svn-id: svn://anubis/anaglym/trunk@283 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-22 03:20:28 +00:00
Josh Holtrop
f782e5dc77 fixed AV::Sound::load's temporary FileLoader::Buffer being destroyed
git-svn-id: svn://anubis/anaglym/trunk@282 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-22 03:13:19 +00:00
Josh Holtrop
d376d7a5b0 fixed AV::Sound::decode() to add sounds and loop over decoded length properly
git-svn-id: svn://anubis/anaglym/trunk@280 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-16 20:51:17 +00:00
Josh Holtrop
908a860482 playing with sounds... needs a lot of work
git-svn-id: svn://anubis/anaglym/trunk@278 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-16 04:29:58 +00:00
Josh Holtrop
6e502367bc moved sound callback into AV member function
git-svn-id: svn://anubis/anaglym/trunk@277 99a6e188-d820-4881-8870-2d33a10e2619
2010-06-16 03:47:45 +00:00
Josh Holtrop
5fbc931c39 added IDSet template; filled out AV::Sound::load(); minor AV updates
git-svn-id: svn://anubis/anaglym/trunk@262 99a6e188-d820-4881-8870-2d33a10e2619
2010-02-24 20:08:02 +00:00
Josh Holtrop
11680bf3d7 added ag.loadSound(), Engine::loadSound(), Engine::addSound(), and Engine::m_sounds
git-svn-id: svn://anubis/anaglym/trunk@261 99a6e188-d820-4881-8870-2d33a10e2619
2010-02-24 04:55:27 +00:00
Josh Holtrop
0cf1ea45a2 renamed Video module to AV
git-svn-id: svn://anubis/anaglym/trunk@260 99a6e188-d820-4881-8870-2d33a10e2619
2010-02-24 03:17:59 +00:00