aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-15 23:46:35 -0700
committerChris Robinson <[email protected]>2011-06-15 23:46:35 -0700
commit7f4dcefc808a8f579f2c70821e9c76d000d04976 (patch)
tree97c3d1442dc8baf162a9afce0948219f3597f46a /OpenAL32/alBuffer.c
parentd702cb9b4920d6b1149d40e2804ef1b408746aca (diff)
Remove the databuffer functions and structs
It's been disabled for a while now, and not likely to be re-enabled.
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c76
1 files changed, 0 insertions, 76 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 4801799e..36ec3aeb 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -30,7 +30,6 @@
#include "AL/alc.h"
#include "alError.h"
#include "alBuffer.h"
-#include "alDatabuffer.h"
#include "alThunk.h"
@@ -292,21 +291,6 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
Context = GetContextSuspended();
if(!Context) return;
- if(Context->SampleSource)
- {
- ALintptrEXT offset;
-
- if(Context->SampleSource->state == MAPPED)
- {
- alSetError(Context, AL_INVALID_OPERATION);
- ProcessContext(Context);
- return;
- }
-
- offset = (const ALubyte*)data - (ALubyte*)NULL;
- data = Context->SampleSource->data + offset;
- }
-
device = Context->Device;
if((ALBuf=LookupBuffer(device->BufferMap, buffer)) == NULL)
alSetError(Context, AL_INVALID_NAME);
@@ -409,21 +393,6 @@ AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const
Context = GetContextSuspended();
if(!Context) return;
- if(Context->SampleSource)
- {
- ALintptrEXT offset;
-
- if(Context->SampleSource->state == MAPPED)
- {
- alSetError(Context, AL_INVALID_OPERATION);
- ProcessContext(Context);
- return;
- }
-
- offset = (const ALubyte*)data - (ALubyte*)NULL;
- data = Context->SampleSource->data + offset;
- }
-
device = Context->Device;
if((ALBuf=LookupBuffer(device->BufferMap, buffer)) == NULL)
alSetError(Context, AL_INVALID_NAME);
@@ -478,21 +447,6 @@ AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer,
Context = GetContextSuspended();
if(!Context) return;
- if(Context->SampleSource)
- {
- ALintptrEXT offset;
-
- if(Context->SampleSource->state == MAPPED)
- {
- alSetError(Context, AL_INVALID_OPERATION);
- ProcessContext(Context);
- return;
- }
-
- offset = (const ALubyte*)data - (ALubyte*)NULL;
- data = Context->SampleSource->data + offset;
- }
-
device = Context->Device;
if((ALBuf=LookupBuffer(device->BufferMap, buffer)) == NULL)
alSetError(Context, AL_INVALID_NAME);
@@ -531,21 +485,6 @@ AL_API void AL_APIENTRY alBufferSubSamplesSOFT(ALuint buffer,
Context = GetContextSuspended();
if(!Context) return;
- if(Context->SampleSource)
- {
- ALintptrEXT offset;
-
- if(Context->SampleSource->state == MAPPED)
- {
- alSetError(Context, AL_INVALID_OPERATION);
- ProcessContext(Context);
- return;
- }
-
- offset = (const ALubyte*)data - (ALubyte*)NULL;
- data = Context->SampleSource->data + offset;
- }
-
device = Context->Device;
if((ALBuf=LookupBuffer(device->BufferMap, buffer)) == NULL)
alSetError(Context, AL_INVALID_NAME);
@@ -588,21 +527,6 @@ AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer,
Context = GetContextSuspended();
if(!Context) return;
- if(Context->SampleSink)
- {
- ALintptrEXT offset;
-
- if(Context->SampleSink->state == MAPPED)
- {
- alSetError(Context, AL_INVALID_OPERATION);
- ProcessContext(Context);
- return;
- }
-
- offset = (const ALubyte*)data - (ALubyte*)NULL;
- data = Context->SampleSink->data + offset;
- }
-
device = Context->Device;
if((ALBuf=LookupBuffer(device->BufferMap, buffer)) == NULL)
alSetError(Context, AL_INVALID_NAME);