Peter Nelson
920bf703cd
Fix: Allow full sample range for 16-bit audio.
...
Clamping each sample value to half the available range could cause
unnecessary premature clipping with lots of sounds playing. This change
does not affect the actual volume level.
2021-04-06 19:31:14 +01:00
Peter Nelson
42fbdda9ab
Change: Apply power-of-3 scaling to master effect volume to improve perceived loudness change.
2021-04-06 19:31:14 +01:00
PeterN
130a052ed5
Fix: Apply master effect volume during mixing instead of sound start. ( #8945 )
...
This makes the volume control work as most players would expect, affecting
existing playing sounds as well as new sounds.
2021-04-05 12:18:59 +02:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Niels Martin Hansen
d6c06de5ad
Add: Mixer feature for streaming sampled music
2019-01-05 17:17:10 +01:00
Niels Martin Hansen
2a868b9f3b
Feature: Framerate display window ( #6822 )
...
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-07-19 21:17:07 +02:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
smatz
fe35a0cacf
(svn r19505) -Codechange: silence a gcc<4.2 warning
2010-03-23 19:48:24 +00:00
peter1138
77fe7e0a74
(svn r19332) -Codechange: Simplify sound panning by using float data, and switch to sinusoidal algorithm to maintain output level.
2010-03-06 11:08:31 +00:00
peter1138
df06c14f61
(svn r18835) -Fix: Large sounds could still cause an overflow with high sample rates, causing them to be cut off.
2010-01-16 22:15:02 +00:00
peter1138
3a5e588f12
(svn r18833) -Cleanup: Const-ness and style
2010-01-16 20:59:58 +00:00
peter1138
711dea210b
(svn r18829) -Codechange: Don't free memory from within audio mixer callback handler as it may be required to be real-time safe.
2010-01-16 17:47:26 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
238b0e43bb
(svn r17146) -Codechange: improve the sample rate conversion a bit
2009-08-10 17:46:44 +00:00
rubidium
8e058c2d27
(svn r17140) -Change: allow higher sample rate and higher quality samples. Based on work by orudge.
2009-08-09 23:04:08 +00:00
peter1138
a67f861d55
(svn r16805) -Codechange: Remove 'unused' mixer channel flags, which always had the same value.
2009-07-13 10:17:22 +00:00
peter1138
c654dedb28
(svn r16784) -Fix: Audio playback rate was fixed at 11025Hz regardless of the rate specified to the audio driver, resulting in incorrect playback speed. It is still preferable to use 11025Hz output rate if possible as OpenTTD's sample rate converter is very low quality.
2009-07-10 18:22:04 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
2009-01-10 00:31:47 +00:00
frosch
33cd16981c
(svn r13706) -Fix (r13695): Small typo.
2008-07-15 17:13:50 +00:00
rubidium
53436082a2
(svn r13695) -Fix [FS#2120]: in some cases the (sound) mixer could overflow causing artefacts in the sound.
2008-07-12 22:30:10 +00:00
rubidium
5c5ee7eb57
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
2008-05-27 21:41:00 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
belugas
b71354dc40
(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style.
2007-03-03 04:04:22 +00:00
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00