aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alstreamcb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make the API functions noexceptChris Robinson2023-05-221-2/+2
| | | | | | | | | | | Only relevant for C++, but these functions can't throw as it's a C-based API. Letting the compiler know that helps improve code generation. Extension callbacks must also not let exceptions leave the callback, or else Bad Things can happen. The macro AL_DISABLE_NOEXCEPT may be defined before including the headers to not mark functions as noexcept, but this should only be done if the caller can't otherwise be fixed.
* Fix compiling examples with an older libsndfileChris Robinson2023-03-051-3/+6
| | | | Which lack the SF_FORMAT_MPEG_LAYER_* enums.
* Make sure the fmt chunk is large enoughChris Robinson2023-03-051-2/+2
|
* Remove a couple unused variablesChris Robinson2023-03-041-2/+2
|
* Cleanup the examples' loading functions slightlyChris Robinson2023-02-171-22/+22
|
* Handle Int16 and ADPCM formats in alstreamcbChris Robinson2023-02-161-25/+181
|
* Finalize AL_SOFT_callback_bufferChris Robinson2022-04-011-12/+1
|
* Remove the unused flags parameter from alBufferCallbackSOFTChris Robinson2022-04-011-3/+2
|
* Use float formats in examples/alstreamcbChris Robinson2021-03-211-10/+10
| | | | | | | libsndfile apparently has issues reading floating-point wave files as 16-bit samples (produces silence). Even on other file formats, reading float samples as integer samples has no over/underflow protection, so this is better for those formats too.
* Support B-Format sounds in the examplesChris Robinson2020-09-221-1/+12
|
* Convert the examples from SDL_sound to libsndfileChris Robinson2020-03-241-94/+51
|
* Add a streaming example using a callback bufferChris Robinson2020-02-201-0/+436