diff options
author | Chris Robinson <[email protected]> | 2017-03-02 00:49:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-02 01:02:40 -0800 |
commit | 6d7a790183552aa783d6043c755a10693d2f9369 (patch) | |
tree | a6012f98349ea598f365f3c92337ef841bdb3942 /OpenAL32/Include | |
parent | 0e8ca50d7ad6b30793772a4451b974e2d28895cf (diff) |
Add a boolean to specify if a voice should be playing
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index f8a32f71..fc1756e5 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -1,13 +1,14 @@ #ifndef _AL_SOURCE_H_ #define _AL_SOURCE_H_ -#define MAX_SENDS 16 -#define DEFAULT_SENDS 2 - +#include "bool.h" #include "alMain.h" #include "alu.h" #include "hrtf.h" +#define MAX_SENDS 16 +#define DEFAULT_SENDS 2 + #ifdef __cplusplus extern "C" { #endif @@ -80,6 +81,7 @@ typedef struct ALvoice { struct ALsourceProps *Props; struct ALsource *Source; + ATOMIC(bool) Playing; /* Current buffer queue item being played. */ ATOMIC(ALbufferlistitem*) current_buffer; |