diff options
author | Chris Robinson <[email protected]> | 2022-11-03 03:09:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-11-03 03:09:30 -0700 |
commit | 551a18a15c66440e3a5478c8b3d6b973f36c33d3 (patch) | |
tree | 9a198cdb7e57e93128eb90aaeb48a1d9f56b2778 /alc/alc.cpp | |
parent | d8361bdd6fa807a4200e18e8ef7ffd13ab849b74 (diff) |
Add functions to start sources at a particular device time
This starts a source at a particular device clock time, rounded to the nearest
sample (really, 4th sample for SIMD reasons), allowing to start a sound at a
particular point in the output instead of the next update.
Unlike using negative offsets, this is not affected by pitch/velocity.
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 9305bf3d..f6385e27 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -452,6 +452,9 @@ const struct { DECL(alAuxiliaryEffectSlotPlayvSOFT), DECL(alAuxiliaryEffectSlotStopSOFT), DECL(alAuxiliaryEffectSlotStopvSOFT), + + DECL(alSourcePlayAtTimeSOFT), + DECL(alSourcePlayAtTimevSOFT), #ifdef ALSOFT_EAX }, eaxFunctions[] = { DECL(EAXGet), |