aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
Commit message (Collapse)AuthorAgeFilesLines
* Use an UNUSED macro instead of void-tagging unused parametersChris Robinson2013-10-071-16/+4
|
* Remove al_try usage from alBuffer.cChris Robinson2013-10-071-246/+230
|
* Start using a simpler method for error handlingChris Robinson2013-10-061-335/+328
| | | | This helps avoid the al_try/al_throwerr/al_endtry stuff.
* Use a separate value for the maximum buffer channelsChris Robinson2013-07-231-4/+4
| | | | | | | Unlike the device, input buffers are accessed based on channel numbers instead of enums. This means the maximum number of channels they hold depends on the number of channels any one format can have, rather than the total number of recognized channels. Currently, this is 8 for 7.1.
* Silence some clang warningsChris Robinson2013-06-051-6/+7
|
* Use C99's inline instead of __inlineChris Robinson2013-05-281-110/+110
|
* Fix possible overflow when converting float to intChris Robinson2013-05-201-2/+2
| | | | | Same as with the mixer, we can only use 25 bits of precision from floats.
* Simplify al_try codeChris Robinson2013-03-241-5/+4
|
* Use int instead of long for the IMA4 tablesChris Robinson2012-11-101-3/+3
|
* Load Int and UInt samples as float with alBufferDataChris Robinson2012-11-101-2/+2
| | | | | This shouldn't really ever happen, as there's no 32-bit (u)int formats alBufferData can take.
* Don't include alu.h in alMain.hChris Robinson2012-09-141-2/+1
|
* Minor typo fixesChris Robinson2012-06-281-2/+2
|
* Don't use all caps for enum value namesChris Robinson2012-06-281-6/+6
|
* Switch alBuffer.c to the new error handling scheme, and get rid of more ↵Chris Robinson2012-04-241-415/+373
| | | | hungarian notation
* Remove some more hungarian notationChris Robinson2012-04-191-94/+94
|
* Fix comment and rename the buffer's self-idChris Robinson2012-04-191-6/+6
|
* Avoid shadowing a couple variablesChris Robinson2012-04-161-4/+4
|
* Add a COUNTOF macro to get the number of entries in a static arrayChris Robinson2012-02-191-2/+2
|
* Move the endian test macro to alMain.hChris Robinson2012-02-151-5/+0
|
* Ensure ALbyte3 and ALubyte3 are the proper sizeChris Robinson2012-02-071-0/+2
|
* Pass the uncompressed sample count to LoadData and ConvertData for IMA4Chris Robinson2012-01-261-41/+56
|
* Avoid a bit of code duplicationChris Robinson2012-01-251-70/+29
|
* Remove the unnecessary AL_MULAW_SOFT, AL_ALAW_SOFT, and AL_IMA4_SOFT definesChris Robinson2012-01-101-3/+0
|
* Append _SOFT to the AL_SOFT_buffer_samples enumsChris Robinson2012-01-101-49/+49
|
* Use sample frames when handling the buffer lengthChris Robinson2011-10-041-32/+16
|
* Get rid of some unnecessary castingChris Robinson2011-10-021-4/+4
|
* Rename some parametersChris Robinson2011-10-021-18/+18
|
* Remove the OriginalAlign buffer field, and calculate it as neededChris Robinson2011-10-011-6/+11
|
* Fix potential divide-by-0Chris Robinson2011-10-011-5/+11
|
* Add buffer properties to get the internal format, and the length in bytes, ↵Chris Robinson2011-10-011-1/+36
| | | | | | | | | | | samples, and seconds The provided buffer lengths correspond to the source offsets, in that the byte length specifies the end of the byte offset (ie, when the buffer is used for a static source, the offset will range between 0 (inclusive) and the byte length (exclusive)). Although an application could use the AL_SIZE, AL_CHANNELS, AL_BITS, and AL_FREQUENCY properties to find the length in samples and seconds, the byte length cannot be reliably calculated this way.
* Add support for AL_EXT_ALAWChris Robinson2011-10-011-2/+159
|
* Centralize the Lookup and Remove macrosChris Robinson2011-09-241-23/+20
|
* Silence some MSVC precision warningsChris Robinson2011-09-221-10/+10
|
* Use arrays instead of large switches to decompose formatsChris Robinson2011-09-181-219/+106
|
* Use a RWLock to protect access to a buffer instead of the device lockChris Robinson2011-09-111-31/+35
|
* Avoid holding the context lock for the buffer functionsChris Robinson2011-09-111-74/+114
|
* Initialize source parameters before adding the source to the mapChris Robinson2011-09-101-0/+1
|
* Avoid the context lock when generating and deleting buffersChris Robinson2011-08-311-19/+9
|
* Rename GetReffedContext to GetContextRefChris Robinson2011-08-301-1/+1
|
* Don't lock the context while checking the validity of objectsChris Robinson2011-08-301-2/+2
|
* Use the reference counting functions for the buffer and auxiliary slot refsChris Robinson2011-08-291-4/+4
|
* Always use the thunk functions to get object IDsChris Robinson2011-08-221-4/+4
|
* Don't use the thunk array for object lookupsChris Robinson2011-08-221-1/+1
|
* Use mini/maxi/clampi and minu/maxu/clampu to replace min/max callsChris Robinson2011-08-161-18/+11
|
* Move functions to where they're usedChris Robinson2011-07-021-0/+40
|
* Rename Suspend/ProcessContext since they are locking a mutexChris Robinson2011-06-301-42/+42
|
* Allow alThunkAddEntry to return a proper errorChris Robinson2011-06-171-2/+3
|
* Avoid calling some AL functions from under the context lockChris Robinson2011-06-161-7/+10
| | | | | | | There are still some more occurances to clear out (deletion in gen error, effects, some filters), which shall be coming up. There is a possibility for a deadlock between the listlock and the global/context lock, if another attempt to get the listlock is made while under the context lock.
* Remove the databuffer functions and structsChris Robinson2011-06-151-76/+0
| | | | It's been disabled for a while now, and not likely to be re-enabled.
* Use signed samples for 8-bit storageChris Robinson2011-05-051-8/+8
|