aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alDatabuffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-18 14:46:33 -0700
committerChris Robinson <[email protected]>2010-03-18 14:46:33 -0700
commit2355d6a4a043a82ad40eae193893beb4bcd2efa0 (patch)
tree268e4254097b23e3a59a2cea71088645530c6c75 /OpenAL32/Include/alDatabuffer.h
parente1965fe7d90a2dee4f60907500947d411d39dd49 (diff)
Use ptrdiff types for databuffer offset/length handling
Should improve addressing for non-32-bit systems
Diffstat (limited to 'OpenAL32/Include/alDatabuffer.h')
-rw-r--r--OpenAL32/Include/alDatabuffer.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenAL32/Include/alDatabuffer.h b/OpenAL32/Include/alDatabuffer.h
index f50450f0..82594265 100644
--- a/OpenAL32/Include/alDatabuffer.h
+++ b/OpenAL32/Include/alDatabuffer.h
@@ -12,14 +12,14 @@ extern "C" {
typedef struct ALdatabuffer
{
- ALubyte *data;
- ALuint size;
- ALenum state;
+ ALubyte *data;
+ ALintptrEXT size;
- ALenum usage;
+ ALenum state;
+ ALenum usage;
/* Index to self */
- ALuint databuffer;
+ ALuint databuffer;
struct ALdatabuffer *next;
} ALdatabuffer;
@@ -28,9 +28,9 @@ ALvoid ALAPIENTRY alGenDatabuffersEXT(ALsizei n,ALuint *puiBuffers);
ALvoid ALAPIENTRY alDeleteDatabuffersEXT(ALsizei n, const ALuint *puiBuffers);
ALboolean ALAPIENTRY alIsDatabufferEXT(ALuint uiBuffer);
-ALvoid ALAPIENTRY alDatabufferDataEXT(ALuint buffer,const ALvoid *data,ALsizei size,ALenum usage);
-ALvoid ALAPIENTRY alDatabufferSubDataEXT(ALuint buffer, ALuint start, ALsizei length, const ALvoid *data);
-ALvoid ALAPIENTRY alGetDatabufferSubDataEXT(ALuint buffer, ALuint start, ALsizei length, ALvoid *data);
+ALvoid ALAPIENTRY alDatabufferDataEXT(ALuint buffer,const ALvoid *data,ALsizeiptrEXT size,ALenum usage);
+ALvoid ALAPIENTRY alDatabufferSubDataEXT(ALuint buffer, ALintptrEXT start, ALsizeiptrEXT length, const ALvoid *data);
+ALvoid ALAPIENTRY alGetDatabufferSubDataEXT(ALuint buffer, ALintptrEXT start, ALsizeiptrEXT length, ALvoid *data);
ALvoid ALAPIENTRY alDatabufferfEXT(ALuint buffer, ALenum eParam, ALfloat flValue);
ALvoid ALAPIENTRY alDatabufferfvEXT(ALuint buffer, ALenum eParam, const ALfloat* flValues);
@@ -43,7 +43,7 @@ ALvoid ALAPIENTRY alGetDatabufferivEXT(ALuint buffer, ALenum eParam, ALint* plVa
ALvoid ALAPIENTRY alSelectDatabufferEXT(ALenum target, ALuint uiBuffer);
-ALvoid* ALAPIENTRY alMapDatabufferEXT(ALuint uiBuffer, ALuint start, ALsizei length, ALenum access);
+ALvoid* ALAPIENTRY alMapDatabufferEXT(ALuint uiBuffer, ALintptrEXT start, ALsizeiptrEXT length, ALenum access);
ALvoid ALAPIENTRY alUnmapDatabufferEXT(ALuint uiBuffer);
ALvoid ReleaseALDatabuffers(ALCdevice *device);