diff options
author | Chris Robinson <[email protected]> | 2018-02-03 01:07:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-03 01:07:06 -0800 |
commit | 40bda4d93f15b5b089b6736eb9fd2d04f8e683eb (patch) | |
tree | e52b16dc302bf930848269e12ce379eab3396e02 /OpenAL32/Include | |
parent | 8f4c078fb569d47dcd53bfb1b69ac2da8ebb0341 (diff) |
Add a disconnected event type
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 1 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index bc5a27c8..5c2435a4 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -612,6 +612,7 @@ enum { EventType_Error = 1<<2, EventType_Performance = 1<<3, EventType_Deprecated = 1<<4, + EventType_Disconnected = 1<<5, }; typedef struct AsyncEvent { diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 2e2e1f5a..0d39729d 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -519,7 +519,7 @@ inline void ComputeFirstOrderGains(const BFMixParams *foa, const ALfloat mtx[4], ALboolean MixSource(struct ALvoice *voice, ALuint SourceID, ALCcontext *Context, ALsizei SamplesToDo); void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples); -/* Caller must lock the device. */ +/* Caller must lock the device, and the mixer must not be running. */ void aluHandleDisconnect(ALCdevice *device); void UpdateContextProps(ALCcontext *context); |