aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-03-16 11:29:22 -0700
committerChris Robinson <[email protected]>2011-03-16 11:29:22 -0700
commit2f7de9d696fc58f31c4caf7ee6ee36428235aea7 (patch)
tree101370af52952e3de75931214e7aa35d7af4df61 /OpenAL32/Include/alMain.h
parent9cee723e928c1c39233cf80828557f4b76530642 (diff)
Add alBufferSamplesSOFT, as an initial start to AL_SOFT_buffer_samples
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 75ebc488..e684d999 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -45,6 +45,16 @@ ALC_API void ALC_APIENTRY alcRenderSamples(ALCdevice *device, ALCvoid *buffer, A
#endif
#endif
+#ifndef AL_SOFT_buffer_samples
+#define AL_SOFT_buffer_samples 1
+typedef void (AL_APIENTRY*LPALBUFFERSAMPLESSOFT)(ALuint,ALuint,ALenum,ALsizei,ALenum,ALenum,const ALvoid*);
+#ifdef AL_ALEXT_PROTOTYPES
+AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer,
+ ALuint samplerate, ALenum internalformat, ALsizei frames,
+ ALenum channels, ALenum type, const ALvoid *data);
+#endif
+#endif
+
#ifndef AL_EXT_sample_buffer_object
#define AL_EXT_sample_buffer_object 1
typedef ptrdiff_t ALintptrEXT;
@@ -530,6 +540,9 @@ void SetRTPriority(void);
void SetDefaultChannelOrder(ALCdevice *device);
void SetDefaultWFXChannelOrder(ALCdevice *device);
+ALboolean IsValidType(ALenum type);
+ALboolean IsValidChannels(ALenum type);
+
void al_print(const char *fname, unsigned int line, const char *fmt, ...)
PRINTF_STYLE(3,4);
#define AL_PRINT(...) al_print(__FILE__, __LINE__, __VA_ARGS__)