summaryrefslogtreecommitdiff
path: root/src/sound_openal.cpp
Commit message (Collapse)AuthorAge
* C++03 oldify in various source filesSmallJoker2018-06-03
|
* Fix recent commit: std::max -> std::fmax for floats (#6469)Paramat2018-06-03
| | | | | Fixes commit a455297d297c0819a7eff89e51e5f01a5ac731c3 <cmath> header was already present in commit.
* Positional sound: Limit volume when closer than 1 nodeparamat2018-06-03
| | | | | | | | | | | | | Change OpenAL distance model from AL_INVERSE_DISTANCE to AL_INVERSE_DISTANCE_CLAMPED to avoid excessive volume when very close to the sound location, for example MTG doors, and MTG fire sounds which are combined at an average position and often located in air nodes. Because AL_REFERENCE_DISTANCE has been reduced to 1 node (the distance under which gain is clamped), multiply volume by the same factor to keep sound gains the same as before, since the gain is calculated as: gain = (AL_REFERENCE_DISTANCE / distance)
* Sound API: Add fading soundsBrandon2017-05-03
|
* OpenAL sound: Use a simpler distance modelparamat2017-02-09
| | | | | | | | | | | | | | In createPlayingSoundAt(), AL_ROLLOFF_FACTOR is not set, so it has the default value of 1.0, this makes the equation of the currently used AL_EXPONENT_DISTANCE distance model identical to the equation of the simpler AL_INVERSE_DISTANCE distance model. Using AL_INVERSE_DISTANCE means an exponent is not processed, exponents are quite intensive to process. There is no change in sound attenuation behaviour. The commented-out AL_ROLLOFF_FACTOR value is removed as it would now have a different effect if used.
* Make some maps unordered to improve performanceLoic Blot2016-10-05
| | | | | | * This permit to improve performance on C++11 builds * use some existing typedefs in tools maps * minor code style changes
* couple of memory leaks fixes.David Carlier2016-08-10
|
* Remove unused OpenALSoundManager::m_can_vorbis and EXT_vorbis checkJay Arndt2015-12-01
|
* sound_openal.cpp: remove unused headerest312015-11-15
|
* Load sound from memoryest312015-11-14
| | | | | | | | | | | * Remove trailing lines from src/sound_openal.cpp * Don't do a horribly ugly copy of the file's path, allocating and deallocating a 10 kb buffer in the process. This copy was needed for backwards compatibility with libvorbis 1.3.1 and earlier, as the removed comment explains. However, even Ubuntu precise has 1.3.2 already. Dropping support and sparing the ugly copy can therefore be considered safe. * Actually load sounds from the memory, not caching them at the disk first, removing the old hack. This is the main motivation for the commit.
* Use warningstream for log messages with WARNINGShadowNinja2015-10-14
| | | | Remove DTIME macro and its uses, too
* Change i++ to ++iDavid Jones2015-08-25
|
* For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins2015-03-07
| | | | NDEBUG is defined), replace those usages with persistent alternatives
* Use std::string::empty() instead of size() where applicableAnton2014-12-12
|
* Pass arguments by referenceSelat2014-03-12
|
* fix memory leak on sound shutdownsapier2013-04-07
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* Fix issue with openal mac os x compileThomas Lauro2012-09-01
|
* Properly and efficiently use split utility headersPerttu Ahola2012-06-17
|
* Initially split utility.h to multiple files in util/Perttu Ahola2012-06-17
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-05
| | | | GPLv2/later, by agreement of major contributors
* Handle failing openal init properly, add enable_sound and sound_volume settingsPerttu Ahola2012-04-06
|
* Attempt to fix sound left-right channelsPerttu Ahola2012-04-06
|
* Do a dumb-ass static string copy for const-incorrect old versions of ov_fopenPerttu Ahola2012-03-27
|
* Sound loading from memory (by using a quick hack)Perttu Ahola2012-03-25
|
* Almost support loading sounds from serverPerttu Ahola2012-03-25
|
* Fix build on MinGW (as compared to Linux)Perttu Ahola2012-03-24
|
* Lua API for playing soundsPerttu Ahola2012-03-24
|
* Add sounds, tune thingsPerttu Ahola2012-03-24
|
* c55sound continuedPerttu Ahola2012-03-24
|
* celeron55's sound system initial frameworkPerttu Ahola2012-03-24