Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 694 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 694 Bytes

swift-openal-soft

OpenAL Soft Swift Package

Usage

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)

Take a look at the files in the following repository.

https://github.com/Hongtae/SwiftVVD/tree/main/Sources/DKGame/Audio