Commit Graph

29 Commits

Author SHA1 Message Date
hiker
c7d7e17ff9 Handle setMasterVolume in sfx thread. 2014-10-21 08:28:41 +11:00
hiker
8b7bf28e0f Fixed #1147 - sounds should stopped when they are disabled in option screen.
Fixed by explicitely stopping all non-looped sfx.
2014-10-20 22:37:19 +11:00
hiker
19f9afb67f Manually keep track of the duration each sfx has been played (instead
of relying on the world clock, which can run backwards, e.g. in
FTL mode). Fixes #1624.
2014-10-18 11:46:22 +11:00
hiker
813edc7ddf Remove SFX_INITIAL state. 2014-10-17 12:00:00 +11:00
hiker
a40d6d8a00 Removed isPlaying function, and use getStatus instead. 2014-10-17 08:27:40 +11:00
hiker
a18766e3e6 Handle looping in sfx thread. 2014-10-16 16:57:12 +11:00
hiker
8fcc373b2a Add volume, speed, and position settings to be done by the sfx
thread. Removed more unnecessary error checks (which mostly flood
stdout with 'not playing ...' messages), and renamed volume, position
and speed to setVolume, setPosition and setSpeed.
2014-10-15 07:55:18 +11:00
hiker
665f146923 Moved SFXStatus enum to SFXBase. 2014-10-14 08:05:04 +11:00
hiker
bfe84612fa Let all SFX commands be handled by the sfx manager thread (otherwise
events could be handled in the wrong order, e.g. a delete from the
main thread before the play in the manager thread, resulting in a crash).
Should fix #1511 and #1604.
2014-10-13 08:26:45 +11:00
hiker
61068c7278 Replaces sfx->getStatus with isPlaying() functi n which is faster
(for #1511).
2014-10-10 16:45:29 +11:00
hiker
c147dacbc2 Queue up sfx instead of starting them immediately. Preparation for
threading the sfx manager.
2014-09-18 11:43:26 +10:00
hikerstk
c5b8732087 Probably biggest commit (in terms of number of files) ever -
updated the (c) line of all files to -2013, added missing (c), 
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
auria
001da20f42 Fix audio master volume bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14107 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-19 23:46:51 +00:00
curaga
57c3cbae3e Space cleanup pass on the headers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 19:47:39 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
auria
d04bc58413 Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
auria
a44adb6e6c Allow per-track sounds for emitters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9431 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-06 20:37:54 +00:00
auria
12cb80f9d0 Enabling sound in-game works even for engines / looped sounds now
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6255 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 20:26:31 +00:00
auria
65fdc2f2ee Link each Sound Source to a Buffer, even if OpenAL is not inited. This will help correct the SFX enable bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6244 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 02:00:36 +00:00
hikerstk
c13933a792 Added more NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5922 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 11:39:19 +00:00
hikerstk
0502408d60 Terrain-specific sfx will now not be cut off when the terrain is left, instead
the sfx will finish.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 23:10:25 +00:00
auria
2810193fb2 Lots of small changes to make the output Doxygen file much more useful
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-23 20:36:13 +00:00
hikerstk
037069a257 Improved handling of directory for user configuration files to work even if $HOME/.config
does not exist, and moved handling of files and directories from user_config to file_manager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-15 01:46:03 +00:00
hikerstk
ee90eca26e 1) Created new config subdir and moved the last remaining files into
appropriate subdirs (only main.cpp and main_loop.?pp are now directly
   in the src directory).
2) Cleaned up all #include directives, so that all files now use
   the right subdirectories.
3) Some minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3606 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 10:00:43 +00:00
stevo14
e1f93c4527 Added support for changing the master SFX volume.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3384 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-12 11:20:13 +00:00
hikerstk
0ae024508a Applied Stephen's 3d sound patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2329 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-09 22:24:19 +00:00
hikerstk
548c35f7e1 1) Bugfix: sfx could not be disabled
2) Bugfix: certain sfx (esp. engine sound) would not get started
   correctly when changing sfx settings during a race.
3) Bugfix: Engine sound would be played if the in-race-menu was shown.
3) Allocating and deallocating SFX objects is now completely done
   in SXFManager (and not allocated in SFXmanager, but deallocated
   via a normal delete call).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-20 14:23:20 +00:00
hikerstk
686540bf29 Removed various g++ compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2283 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-19 14:43:25 +00:00
hikerstk
c0eae662f2 1) Applied Stehen's patch to give each kart separate sound effects objects,
and add engine sounds.
2) Added sfx manager so that the buffers for the sfx are shared between
   all sfx objects.
3) Moved all audio related files into audio subdirectory.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-18 03:24:19 +00:00