hiker
7e4e857b41
Improve situation of #1624 - it should only happen now if you pause the
...
game in the first one or two seconds after start (still wip).
2014-10-15 23:38:13 +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
22633aa363
Avoid calling querying the openal status in getStatus (which causes
...
a slowdown of sfx).
2014-10-14 09:01:26 +11:00
hiker
665f146923
Moved SFXStatus enum to SFXBase.
2014-10-14 08:05:04 +11:00
hiker
5cf7b0dca9
Added computation of the duration of a sound buffer (unused atm).
2014-10-13 22:06:05 +11:00
hiker
f84e773738
Removed status check when queueing sfx, to get more consistent
...
runtime behaviour.
2014-10-13 22:04:46 +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
216575a732
Started to let all sfx related command be executed from the sfx manager
...
to avoid race condition and crashes.
2014-10-11 11:55:02 +11:00
hiker
61068c7278
Replaces sfx->getStatus with isPlaying() functi n which is faster
...
(for #1511 ).
2014-10-10 16:45:29 +11:00
Flakebi
069853b11f
Fix #1153 Cleanup logging code
2014-10-07 20:54:54 +02:00
hiker
ad20635cce
Applied patch for #600 (support 64 bit compilation on windows).
2014-09-23 14:41:32 +10:00
hiker
99fd49bdc0
Run SFX in a separate thread (for #1511 ).
2014-09-22 17:04:14 +10: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
hiker
64fc2dd968
Added comments.
2014-09-18 07:55:24 +10:00
hiker
8c3beef69b
Removed unnecessary static variable.
2014-09-18 07:48:31 +10:00
hiker
66da6d9435
Removed old/unused declaration.
2014-09-17 22:08:43 +10:00
hiker
86b351fbf4
Turn sfx_manager into a singleton.
2014-09-17 21:38:21 +10:00
Daniel Butum
fc5da9eb9a
Fix back button in login screen and fix 'move on uninitialised value in MusicInformation'
2014-04-26 13:33:09 +03:00
konstin
9d22b74b54
Fixing compilation issues on linux
2014-04-11 20:14:20 +02:00
konstin
7cc83e1475
running whitespaces.py update 1
2014-03-29 11:33:43 +01:00
konstin
663fffdebb
Revert "Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces"
...
This reverts commit 65e2dcf2f0
.
2014-03-29 11:32:04 +01:00
konstin
65e2dcf2f0
Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces
2014-03-28 20:08:39 +01:00
KroArtem
66c5d4a645
removed unused functions
2014-03-16 15:28:46 +04:00
Torben Carrington
15401c0b02
Fixed music starting in menu, also corrected using the startRightNow parameter in MusicManager::startMusic()
2014-01-16 19:13:23 -08:00
auria
6b7e33a267
Convert a bunch of prints to our logging system, it's long overdue we fix that
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-01 19:11:01 +00:00
hikerstk
c450c97472
Allowed the music directory to be external. Renamed
...
getMusicFile to searchMusic and getTextureFile to
searchTexture. Removed m_root_dir from file_manager.
Added convenience function getTexture to irr_driver
which takes an asset type, so now less code is needed
to load textures (though that's proably not used
everywhere yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-18 22:29:08 +00:00
hikerstk
73c498daf3
Start to support 'externa' data directories. Most directories
...
from data can now be moved out (except music). STK prints
an overview of which directory is taken from where. More
cleanups and improvements will come.
Also moved skins into a separate directory under data (from
data/skins), since it's likely that skins will be part
of a binary package (i.e. changes to skins not really
related to code), while gui files will more likely stay
with the code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-17 23:48:47 +00:00
hikerstk
b074dc5f09
Moved all VS specific math code (i.e. for round(), isnan) into vs.hpp
...
and used it everywhere (I hope).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14640 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-06 03:49:55 +00:00
hikerstk
bced8cdb9f
Merged with trunk, part 1 (due to previous failures I am splitting this
...
patch).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@14605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-02 04:27:55 +00:00
hilnius
ea2b52a663
merging hilnius's branch
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-31 18:03:11 +00:00
curaga
e3ebbbbb04
sfx mgr: Remove unused function declaration
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13079 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-04 19:31:19 +00:00
curaga
9ddeac772a
Likewise for userconfigparams
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12986 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-26 13:32:02 +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
curaga
b56bf4dc53
Remove trailing space, git doesn't like it
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
a6223250db
Fixed #943 - replaced printf with Log - thanks to pkucoin.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12691 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-23 11:06:50 +00:00
hikerstk
793b5d5d4a
Replaced printfs with calls to Log::.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12358 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 22:31:03 +00:00
hikerstk
872cb2d7f6
Removed unnecessary warning.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12255 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-10 23:31:34 +00:00
auria
1a269ac4ac
Add a couple leak-check macros
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-10 01:31:41 +00:00
auria
78d964b79d
try to fix sound leaks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12222 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 23:30:26 +00:00
hikerstk
fe221d21b3
Removed debug output.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-04 02:38:26 +00:00
hikerstk
fe6294d0d4
Fixed two uninitialised variables, removed unnecessary #include.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 02:57:21 +00:00
auria
ace58348ef
Fix music gain in MusicInformation. Use it appropriately to boost West music, and quiet down overworld music
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-27 19:19:04 +00:00
hikerstk
4f835f341f
Minor bugfix to get compilation without oggvorbis to work.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 06:46:22 +00:00
auria
65d897915a
Manually implement muting sounds when too far since OpenAL doesn't seem to have that feature, and use it to finally make the spaceship sound in the intro work
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 20:05:38 +00:00
auria
9f909b4c26
undo my attempts at configuring the attenuation model per-source, after closer inspection OpenAL doesn't support what I was trying to do :(
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 19:20:41 +00:00
wardje
41b47718a1
Fix minor memory leaks, by nathanm32292394 - #676
...
* delete star effect in kart destructor
* clean up challenges in gameslot destructor
* music information's normal and fast music
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-16 22:36:47 +00:00
auria
1574ff472d
Add specifying SFX rolloff type
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 18:49:35 +00:00
auria
8d0273ced0
Allow cutscenes to have no music, a few minor other fixes in animation
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-17 00:13:33 +00:00
auria
8dcc237c28
Fix tons of warnings when building with Mingw. Yes I know I did a few changes in bullet. I don't care, the warnings were too annoying
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-20 01:51:28 +00:00
auria
62d76f1405
Apply patch by riebl : fix possible crash when OpenAL was disabled
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10932 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 16:33:06 +00:00
auria
8391f085ce
Apply patch by riebl : adjust DummySFX so it can be used instead of SFXOpenAL
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10931 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 16:32:18 +00:00
auria
9d4157de93
Add sound hack in debug mode on OSX to make STK more pleasant to debug ;)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 20:08:49 +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
407c5319b5
More work to fix building without OpenAL for Android
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10267 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 18:15:12 +00:00
auria
9afdcfaf50
Apply patch that is a bit similar to what xapantu did, but in a IMHO more modular way
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10264 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 01:14:16 +00:00
hikerstk
5d6f1ed4a4
More cosmetic only changes.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10043 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 05:03:13 +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
hikerstk
9767765cb9
Removed exception throwing from MusicInformation constructor, and
...
use a simple static function to create a MusicInformation object.
This simplifies handling of errors in calling functions, and
appears to have fixed a (minor) memory leak as well.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 11:15:53 +00:00
hikerstk
a294b36ced
Oops - looks like the unused function I deleted was used (and I
...
am nearly certain it compiled when I tried :( ).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 09:10:25 +00:00
hikerstk
5caee0a9fc
Removed loading of music files from a track directory if the .music
...
files are not specified in the track.xml file. There is no need to
support this functionality (track directories should only contain
music that is actually used by the track), and it caused duplicated
entries on case-insensitive file systems (e.g. on windows it
resulted in one entry for west.music, and one for West.music).
While the latter had no big disadvantage (it was cleared correctly)
it is unnecessary and might lead to problems later.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9971 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 06:20:29 +00:00
auria
2aa2250d12
Check MusicInfo class for leaks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9970 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 02:05:32 +00:00
hikerstk
ad73e60d4c
Fixed minor memory leak.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 06:19:46 +00:00
auria
b696dfad65
Subsea deserves a better song than BoomBoomBoom, plus add Rudy to the Credits for Subsea track
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9944 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 20:15:46 +00:00
hikerstk
71fee00dbd
Fixed minor memory leak.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-03 22:09:33 +00:00
auria
d2e5914c84
Minor improvements to some logging (most importantly, missing \n at the end)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 19:08:15 +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
a4b954f2ea
Add some support for sound emitters on tracks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-06 19:51:12 +00:00
auria
d8815794b9
Fixed a lot of old logging code left from before the log level was a bit mask. We don't have too many log bits so atm they are classified a lot in 'misc'
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:39:09 +00:00
auria
6e4cee9341
Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
c5ddfb1d6d
Add nice little race end fanfare and race summary song by Dundersylt
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-21 01:07:06 +00:00
auria
c66ada8168
Suppress annoying warning
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8589 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-15 18:28:07 +00:00
auria
11e925f867
Fix musical note hiccup bug by preparing track music in 2 phases
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-11 01:47:27 +00:00
auria
16158e434f
Make per-material sounds always positional
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 16:09:23 +00:00
auria
8b725a88c2
Major audio cleanup : remove sound effects names. Now their filename is their identifier. This simplifies things a lot
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 00:22:16 +00:00
hikerstk
8b22aba2b5
Removed warning that are constantly printed on stdout if sfx
...
are disables (Auria, I assume this is the right way to do
this?)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-14 11:49:47 +00:00
auria
cdc61fda1e
Fixed non-positional bridge sound in canyon
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8338 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-13 20:59:22 +00:00
mbjornstk
015443f582
Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
auria
1acb58ee59
Removed old code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7241 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 21:22:04 +00:00
auria
65d2fff63c
Fixed more leaks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-12 01:25:47 +00:00
auria
7f97094b87
Fixed numerous leaks, especially audio leaks + add debug functions to be able to easily check for audio leaks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 22:18:55 +00:00
auria
1b426216e6
Minor improvements to OpenAL error reporting
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 20:29:08 +00:00
auria
f6985bd379
Remember sfx volume even when it's off
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6845 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-01 18:45:17 +00:00
auria
48478bbe15
Fixed a couple warnings
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6640 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-18 15:49:00 +00:00
auria
2df77fbc5e
Fixed machine gun effect when riding on zipper ramps
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6576 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 19:15:34 +00:00
auria
16408bc258
Reduce volume of background music while playing last lap fanfare + don't play last lap fanfare in one-lap races
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 01:24:26 +00:00
auria
1cb2b1caa3
Fixed sound being shortly unpaused when switching screen and sound is off
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 23:12:30 +00:00
auria
bad35f1595
Enable looped sounds only when unpausing sounds and not as soon as the checkbox is pressed
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 22:35:58 +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
7434604183
Fixed sound to be positional again
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 19:46:04 +00:00
auria
947f9a5eb1
Improved disabling audio in-game
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 19:33:27 +00:00
auria
b957d7923a
Perform decent error checking when getting music file, previous code would silently return an empty file. Fixed the use of the 'smart' function used too early when loading title music
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 19:19:31 +00:00
auria
3f0f1d4b57
More work on audio : enabling SFX in-game now works significantly better, cakes and zippers now work properly. Disabling SFX in-game still not checked; when when enabling SFX in-game, looping sounds like kart engines are not started
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6245 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 02:13:45 +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
auria
3adaeef476
Started refactoring audio code so that the SFX enable bug can be fixed easier later (bug not yet fixed)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6243 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 01:45:12 +00:00
hikerstk
a0ce44d326
Removed warnings printed to stderr in case of missing music files (which
...
can happen and not indicate a problem at all - all music files are searched
for in different directories like data/tracks/XXX and data/music, so it's
normal that music files are not always found).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5999 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-14 05:23:59 +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
01a3da7920
Removed compiler warnings.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5909 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 06:19:37 +00:00
hikerstk
2764edde6d
Added error messages to stderr if there is a problem with a music files
...
(the original exceptions are silently ignored, so no message to the user
indicating that a problem was detected).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 23:08:57 +00:00
hikerstk
75bfa4946b
Fixed crash in case that an invalid .music file is in a track directory.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-31 23:06:24 +00:00
hikerstk
e97c486c77
1) Fixed .music XML files and reading code to be more in line
...
with our 'standard' way of using xml files.
2) Some code cleanup.
3) Added support for specifying tracks in .music files again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5832 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 23:21:06 +00:00