From 243939f94f26b1840255590b2454e931374de73f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 13 Aug 2009 12:28:46 -0700 Subject: Allow delaying playback start until context creation, and don't use UpdateSize to store the buffer size This will make it possible to support the context attributes (frequency, refresh, etc) for some backends --- OpenAL32/Include/alMain.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 6f8ab595..3199d54c 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -148,6 +148,8 @@ static __inline void al_print(const char *fname, unsigned int line, const char * typedef struct { ALCboolean (*OpenPlayback)(ALCdevice*, const ALCchar*); void (*ClosePlayback)(ALCdevice*); + ALCboolean (*StartContext)(ALCdevice*, ALCcontext*); + void (*StopContext)(ALCdevice*, ALCcontext*); ALCboolean (*OpenCapture)(ALCdevice*, const ALCchar*, ALCuint, ALCenum, ALCsizei); void (*CloseCapture)(ALCdevice*); @@ -173,6 +175,7 @@ struct ALCdevice_struct ALuint Frequency; ALuint UpdateSize; + ALuint BufferSize; ALenum Format; ALCchar *szDeviceName; @@ -197,6 +200,8 @@ struct ALCdevice_struct #define ALCdevice_OpenPlayback(a,b) ((a)->Funcs->OpenPlayback((a), (b))) #define ALCdevice_ClosePlayback(a) ((a)->Funcs->ClosePlayback((a))) +#define ALCdevice_StartContext(a,b) ((a)->Funcs->StartContext((a), (b))) +#define ALCdevice_StopContext(a,b) ((a)->Funcs->StopContext((a), (b))) #define ALCdevice_OpenCapture(a,b,c,d,e) ((a)->Funcs->OpenCapture((a), (b), (c), (d), (e))) #define ALCdevice_CloseCapture(a) ((a)->Funcs->CloseCapture((a))) #define ALCdevice_StartCapture(a) ((a)->Funcs->StartCapture((a))) -- cgit v1.2.3