Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenAL binding #13

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots" }
| [GLFW](http://www.glfw.org/) | Create multiple windows, handle user input (keyboard, mouse, gaming peripherals) and manage contexts. Also features multi-monitor support, clipboard access, file drag-n-drop, and [much more](http://www.glfw.org/docs/latest/news.html). |
| [Native File Dialog Extended](https://github.com/btzy/nativefiledialog-extended) | A small C library that portably invokes native file open, folder select and file save dialogs. |

### Audio

| Library | Description |
|-----------------------------------|------------------------------------------------------------------------------------------------------------------------|
| [OpenAL](https://www.openal.org/) | A cross-platform 3D audio API appropriate for use with gaming applications and many other types of audio applications. |

### [stb](https://github.com/nothings/stb) - single-file public domain libraries for C/C++

| Library | Description |
Expand Down Expand Up @@ -137,6 +143,24 @@ natives
│ │ └─ nfd.dll
│ └─ x64
│ └─ nfd.dll
│─ openal https://github.com/Over-Run/openal-soft-ci
│ ├─ linux
│ │ ├─ arm32
│ │ │ └─ libopenal.so
│ │ ├─ arm64
│ │ │ └─ libopenal.so
│ │ └─ x64
│ │ └─ libopenal.so
│ ├─ macos
│ │ ├─ arm64
│ │ │ └─ libopenal.dylib
│ │ └─ x64
│ │ └─ libopenal.dylib
│ └─ windows
│ ├─ arm64
│ │ └─ openal.dll
│ └─ x64
│ └─ openal.dll
└─ stb https://github.com/Over-Run/stb-ci
├─ linux
│ ├─ arm32
Expand Down
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ enum class NativeBinding(
NativePlatform.MACOS, NativePlatform.MACOS_ARM64
),
NFD("nfd", "nfd", *NativePlatform.ALL),
OPENAL("openal", "openal", *NativePlatform.ALL),
STB("stb", "stb", *NativePlatform.ALL)
}

Expand Down Expand Up @@ -96,6 +97,11 @@ enum class Artifact(
"A tiny, neat C library that portably invokes native file open and save dialogs.",
":nfd", "Nfd", NativeBinding.NFD
),
OPENAL(
"overrun-openal", "OverrunGL - OpenAL bindings",
"A cross-platform 3D audio API appropriate for use with gaming applications and many other types of audio applications.",
":openal", "Openal", NativeBinding.OPENAL
),
OPENGL(
"overrungl-opengl", "OverrunGL - OpenGL bindings",
"The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.",
Expand Down
1 change: 1 addition & 0 deletions doc/notes/0.x/0.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ This version includes the following features:
- C memory function
- Native memory access for JOML
- Native File Dialog Extended
- OpenAL
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ orgUrl=https://over-run.github.io/
# Developers
developers=squid233:squid233:[email protected]

projModules=core, glfw, nfd, joml, opengl, stb
projModules=core, glfw, nfd, joml, openal, opengl, stb
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ public enum FunctionDescriptors {
// 1
D, F, I, J, P, p, V,
// 2
BV, DV, FV, II, IJ, IP, Ip, IV, IZ, JP, JV, JZ, PF,
BV, DV, FV, ID, IF, II, IJ, IP, Ip, IV, IZ, JP, JV, JZ, PF,
/**
* Make it doesn't confuse with {@link Math#PI}.
*/
fd_PI("PI"),
PJ, PP, Pp, PV, PZ, SV, ZV,
// 3
DDV, FFV, FZV, IDV, IFV, III, IIJ, IIP, IIp, IIV, IIZ, IJV, IPI, IPP, IPp, IPV, IPZ, ISV, JIV, JJP, PFV, PII, PIV, PJP,
PJp, PPI, PPP, PPp, PPV, SSV,
DDV, FFV, FZV, IDV, IFV, III, IIJ, IIP, IIp, IIV, IIZ, IJV, IPI, IPP, IPp, IPV, IPZ, ISV, JIV, JJP, PFV, PII, PIp, PIV,
PJP, PPI, PPP, PPp, PPV, PPZ, SSV,
// 4
BBBV, DDDV, FFFV, IDDV, IFFV, IIDV, IIFV, IIII, IIIV, IIJV, IIPI, IIPV, IJJV, IPIV, IPPV, IPPZ, ISSV, PDDV, PIIP, PIIV,
PIJI, PIJP, PIJV, PIPp, PIPV, PPII, PPIP, PPJP, PPPI, PPPV, SSSV,
PIJI, PIJP, PIJV, PIPp, PIPV, PPII, PPIP, PPIV, PPJP, PPPI, PPPV, SSSV,
// 5
BBBBV, DDDDV, FFFFV, IDDDV, IFFFV, IIDDV, IIFFV, IIFIV, IIIIV, IIIJV, IIIPV, IIJIV, IIJJV, IIPIV, IIPPV, IIZIV, IIZPV,
IJJIP, IJJJV, IJJPV, IJJZV, IJPIV, IPIIV, IPIPV, IPPIV, ISSSV, PIIIP, PIIPp, PIPII, PIPIp, PIPPV, PPIPI, PPPPI, PPPPV,
SSSSV, ZZZZV,
IJJIP, IJJJV, IJJPV, IJJZV, IJPIV, IPIIV, IPIPV, IPPIV, IPPPV, ISSSV, PIIIP, PIIPp, PIIPV, PIPII, PIPIp, PIPPV, PPIPI,
PPPPI, PPPPV, SSSSV, ZZZZV,
// 6
FFFFFV, IBBBBV, IDDDDV, IFFFFV, IIDDDV, IIFFFV, IIIFIV, IIIIIV, IIIIPV, IIIJIV, IIIJJV, IIIPIV, IIIPPP, IIIPPV, IIIPZV,
IIIZIV, IIIZPV, IIJJJV, IIPIIV, IIPIPV, IIPPPP, IIPPPV, IIZIIJ, IJJJJV, IPIPIV, IPIPPV, IPJIIV, IPPIPV, ISSSSV, IZIIPV,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
* @since 0.1.0
*/
public final class GLFW {
static {
create();
}

/**
* The major version number of the GLFW header.
* <p>
Expand Down Expand Up @@ -844,10 +848,6 @@ public final class GLFW {
*/
public static final int DONT_CARE = -1;

static {
create();
}

private GLFW() {
throw new IllegalStateException("Do not construct instance");
}
Expand Down
Empty file.
Loading