25 Commits

Author SHA1 Message Date
Benau
8e885d15ac Calculate duration from the original buffer size
MojoAL use SDL_AudioCVT internally which doubles the size
2021-05-14 23:58:59 +08:00
David Carlier
c9c4149139 slighty less C code proposal 2020-02-08 16:59:25 +00:00
David Carlier
7951d1a92d Reducing significantly build warning on MacOS
OpenGL deprecated APIs, gl/gl3 inclusion, OpenAL deprecated API.
Implementing process path for the crash reporter.
2020-01-12 07:28:15 +00:00
Benau
31caa7e056 Make all fopen utf8 path aware 2019-06-28 21:05:50 +08:00
Deve
9b9785e8ec Add a possibility to disable sound in commandline 2018-08-18 23:34:54 +02:00
Benau
02fea1ee43 Disable sound code in server only build and rename the flag 2018-07-07 09:48:43 +08:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
hiker
4658bd83de Handle playing and stopping of music in separate thread. Make the sfx
manager thread use CanBeDeleted to allow for timed deleting.S
2015-02-03 16:27:05 +11:00
hiker
5cf7b0dca9 Added computation of the duration of a sound buffer (unused atm). 2014-10-13 22:06:05 +11:00
konstin
9d22b74b54 Fixing compilation issues on linux 2014-04-11 20:14:20 +02:00
auria
685589a19c Silence warnings that could occur when sound is disabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-19 01:09:19 +00: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
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
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
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
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
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
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
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
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