diff options
Diffstat (limited to 'src/al.zig')
-rw-r--r-- | src/al.zig | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/al.zig b/src/al.zig new file mode 100644 index 0000000..b15f2a1 --- /dev/null +++ b/src/al.zig @@ -0,0 +1,39 @@ +// Audio Library wrapper +// Copyright (C) 2021 Nguyễn Gia Phong +// +// This file is part of zeal. +// +// Zeal is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Zeal is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with zeal. If not, see <https://www.gnu.org/licenses/>. + +usingnamespace @cImport({ @cInclude("AL/al.h"); }); + +pub const POSITION = AL_POSITION; +pub const ORIENTATION = AL_ORIENTATION; + +pub const listener = struct { + pub const setFloat = alListenerf; + pub const setFloatVector = alListenerfv; +}; + +// alBufferData +// alDeleteSources +// alGenBuffers +// alGenSources +// alGetSourcei +// alSourcef +// alSourcefv +// alSourcei +// alSourcePause +// alSourcePlay +// alSourceStop |