diff options
author | Chris Robinson <[email protected]> | 2021-04-26 20:25:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-04-26 20:25:24 -0700 |
commit | 26c8c50c2605e377f74d7a73bae3bbbf4f7bad61 (patch) | |
tree | 1d66be8cc28a32e965de87e5b51012c26b6b2b95 /alc/inprogext.h | |
parent | 22a8ebff8094785ec53aadef8489dc60f6939d55 (diff) |
Partially implement an extension to hold sources on disconnect
Rather than stopping voices/sources when the device becomes disconnected, the
context can be set to leave them alone. As a consequence, their state will
remain as playing and they'll keep their last known sample offset indefinately.
For applications mindful of this behavior, it will allow resetting or reopening
the device to reconnect and automatically resume where it left off.
Diffstat (limited to 'alc/inprogext.h')
-rw-r--r-- | alc/inprogext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alc/inprogext.h b/alc/inprogext.h index 091703e2..781ccfd3 100644 --- a/alc/inprogext.h +++ b/alc/inprogext.h @@ -89,6 +89,11 @@ ALCboolean ALC_APIENTRY alcReopenDeviceSOFT(ALCdevice *device, const ALCchar *de #define AL_FORMAT_UHJ4CHN_FLOAT32_SOFT 0x19AA #endif +#ifndef AL_SOFT_hold_on_disconnect +#define AL_SOFT_hold_on_disconnect +#define AL_STOP_SOURCES_ON_DISCONNECT_SOFT 0x19AB +#endif + #ifdef __cplusplus } /* extern "C" */ #endif |