9613b4bfe2
Rather than each buffer being individually allocated with a generated 'thunk' ID that's used with a uint:ptr map, buffers are allocated in arrays of 64 within a vector. Each group of 64 has an associated 64-bit mask indicating which are free to use, and the buffer ID is comprised of the two array indices which directly locate the buffer (no searching, binary or otherwise). Currently no buffers are actually deallocated after being allocated, though they are reused. So an app that creates a ton of buffers once, then deletes them all and uses only a couple from then on, will have a bit of waste, while an app that's more consistent with the number of used buffers won't be a problem. This can be improved by removing elements of the containing vector that contain all-free buffers while there are plenty of other free buffers. Also, this method can easily be applied to other resources, like sources. |
||
---|---|---|
Alc | ||
build | ||
cmake | ||
common | ||
docs | ||
examples | ||
hrtf | ||
include/AL | ||
native-tools | ||
OpenAL32 | ||
presets | ||
router | ||
utils | ||
.gitignore | ||
.travis.yml | ||
alsoftrc.sample | ||
appveyor.yml | ||
ChangeLog | ||
CMakeLists.txt | ||
config.h.in | ||
COPYING | ||
openal.pc.in | ||
README | ||
version.cmake | ||
version.h.in | ||
XCompile-Android.txt | ||
XCompile.txt |
Source Install ============== To install OpenAL Soft, use your favorite shell to go into the build/ directory, and run: cmake .. Assuming configuration went well, you can then build it, typically using GNU Make (KDevelop, MSVC, and others are possible depending on your system setup and CMake configuration). Please Note: Double check that the appropriate backends were detected. Often, complaints of no sound, crashing, and missing devices can be solved by making sure the correct backends are being used. CMake's output will identify which backends were enabled. For most systems, you will likely want to make sure ALSA, OSS, and PulseAudio were detected (if your target system uses them). For Windows, make sure DirectSound was detected. Utilities ========= The source package comes with an informational utility, openal-info, and is built by default. It prints out information provided by the ALC and AL sub- systems, including discovered devices, version information, and extensions. Configuration ============= OpenAL Soft can be configured on a per-user and per-system basis. This allows users and sysadmins to control information provided to applications, as well as application-agnostic behavior of the library. See alsoftrc.sample for available settings. Acknowledgements ================ Special thanks go to: Creative Labs for the original source code this is based off of. Christopher Fitzgerald for the current reverb effect implementation, and helping with the low-pass and HRTF filters. Christian Borss for the 3D panning code previous versions used as a base. Ben Davis for the idea behind a previous version of the click-removal code. Richard Furse for helping with my understanding of Ambisonics that is used by the various parts of the library.