OpenAL Soft Swift Package
- Swift programming language
- OpenAL Soft
Add this repository URL as a dependency of your Package.swift.
import PackageDescription
let package = Package(
name: "MyProject",
dependencies: [
.package(
url: "https://github.com/Hongtae/swift-openal-soft.git",
branch: "master"),
],
...
in your swift file
import OpenAL
let device = alcOpenDevice(deviceName)
...
alcCloseDevice(device)
https://github.com/Hongtae/SwiftVVD/tree/main/Sources/DKGame/Audio