summary refs log tree commit diff
path: root/src/al.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/al.zig')
-rw-r--r--src/al.zig12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/al.zig b/src/al.zig
index 7b2e6db..bbde02e 100644
--- a/src/al.zig
+++ b/src/al.zig
@@ -18,7 +18,10 @@
 
 const Child = @import("std").meta.Child;
 
-usingnamespace @cImport(@cInclude("AL/al.h"));
+usingnamespace @cImport({
+    @cInclude("AL/al.h");
+    @cInclude("AL/alext.h");
+});
 
 pub const Error = error {
     /// Bad name (ID) passed to an OpenAL function.
@@ -33,12 +36,17 @@ pub const Error = error {
     OutOfMemory,
 };
 
+pub const FALSE = AL_FALSE;
+pub const TRUE = AL_TRUE;
+pub const AUTO = AL_AUTO_SOFT;
+
 pub const BUFFER = AL_BUFFER;
 pub const POSITION = AL_POSITION;
 pub const ORIENTATION = AL_ORIENTATION;
 pub const PLAYING = AL_PLAYING;
 pub const SEC_OFFSET = AL_SEC_OFFSET;
 pub const SOURCE_STATE = AL_SOURCE_STATE;
+pub const SOURCE_SPATIALIZE = AL_SOURCE_SPATIALIZE_SOFT;
 
 pub const listener = struct {
     /// Set a property for the listener.
@@ -211,7 +219,5 @@ pub const source = struct {
     }
 };
 
-// alGetSourcei
 // alSourcePause
-// alSourcePlay
 // alSourceStop