summaryrefslogtreecommitdiff
path: root/src/mixer.cpp
AgeCommit message (Collapse)Author
2021-04-06Fix: Allow full sample range for 16-bit audio.Peter Nelson
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-06Change: Apply power-of-3 scaling to master effect volume to improve ↵Peter Nelson
perceived loudness change.
2021-04-05Fix: Apply master effect volume during mixing instead of sound start. (#8945)PeterN
This makes the volume control work as most players would expect, affecting existing playing sounds as well as new sounds.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-01-05Add: Mixer feature for streaming sampled musicNiels Martin Hansen
2018-07-19Feature: Framerate display window (#6822)Niels Martin Hansen
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.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2010-07-24(svn r20211) -Codechange: Indented code should have curly braces around it.alberth
2010-03-23(svn r19505) -Codechange: silence a gcc<4.2 warningsmatz
2010-03-06(svn r19332) -Codechange: Simplify sound panning by using float data, and ↵peter1138
switch to sinusoidal algorithm to maintain output level.
2010-01-16(svn r18835) -Fix: Large sounds could still cause an overflow with high ↵peter1138
sample rates, causing them to be cut off.
2010-01-16(svn r18833) -Cleanup: Const-ness and stylepeter1138
2010-01-16(svn r18829) -Codechange: Don't free memory from within audio mixer callback ↵peter1138
handler as it may be required to be real-time safe.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-10(svn r17146) -Codechange: improve the sample rate conversion a bitrubidium
2009-08-09(svn r17140) -Change: allow higher sample rate and higher quality samples. ↵rubidium
Based on work by orudge.
2009-07-13(svn r16805) -Codechange: Remove 'unused' mixer channel flags, which always ↵peter1138
had the same value.
2009-07-10(svn r16784) -Fix: Audio playback rate was fixed at 11025Hz regardless of ↵peter1138
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-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-07-15(svn r13706) -Fix (r13695): Small typo.frosch
2008-07-12(svn r13695) -Fix [FS#2120]: in some cases the (sound) mixer could overflow ↵rubidium
causing artefacts in the sound.
2008-05-27(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.rubidium
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-03-03(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing ↵belugas
tags and (more than just) a few comments style.
2007-01-10(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, ↵rubidium
stillunknown and pv2b.
2007-01-10(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files ↵KUDr
renamed to .cpp)