https://github.com/hongtae/swift-openal-soft
OpenAL Soft Swift Package
https://github.com/hongtae/swift-openal-soft
audio-library ios-swift linux-swift macos-swift openal openal-soft swift windows-swift
Last synced: 5 months ago
JSON representation
OpenAL Soft Swift Package
- Host: GitHub
- URL: https://github.com/hongtae/swift-openal-soft
- Owner: Hongtae
- License: other
- Created: 2022-11-18T07:01:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T09:29:12.000Z (almost 2 years ago)
- Last Synced: 2025-06-02T18:32:13.293Z (about 1 year ago)
- Topics: audio-library, ios-swift, linux-swift, macos-swift, openal, openal-soft, swift, windows-swift
- Language: C
- Homepage:
- Size: 146 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# swift-openal-soft
OpenAL Soft Swift Package
* Swift programming language
* https://swift.org
* OpenAL Soft
* https://github.com/kcat/openal-soft
## 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/VVD/Audio](https://github.com/Hongtae/SwiftVVD/tree/694cd779b545ba8b3806c42492dcb39cd2eeb82e/Sources/VVD/Audio)