Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/healscodes/opus-swift
Experimental Swift wrapper around libopus
https://github.com/healscodes/opus-swift
ogg-opus opus opus-codec swift-wrapper swift5
Last synced: 19 days ago
JSON representation
Experimental Swift wrapper around libopus
- Host: GitHub
- URL: https://github.com/healscodes/opus-swift
- Owner: HealsCodes
- License: other
- Created: 2024-04-16T10:37:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-07T09:34:24.000Z (8 months ago)
- Last Synced: 2024-10-28T09:36:26.372Z (2 months ago)
- Topics: ogg-opus, opus, opus-codec, swift-wrapper, swift5
- Language: Swift
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opus-swift
This package was created to provide an easy-to-maintain binding for [libopus](https://opus-codec.org/docs/opus_api-1.3.1/index.html)# Version
The current release supports libopus v1.4# Usage
This package is supposed to be used with SwiftPM or added as a Package dependency from XCode.For Swift Package Manager add the following lines your Package.swift under `dependencies`:
```swift
.package(
name: "opus-swift",
url: "https://github.com/HealsCodes/opus-swift.git",
revision: "7f32c90063405ad719a367882e8c7275df40567a"
)
```Referencing versioned tags is currently not supported as opus-swift relies on `unsafeFlags([])`
to supply the required optimisation and architecture flags to Clang.To use the package in your swift code simply import it:
```swift
import LibOpus
```# Licensing
This project is under MIT license.libopus sources are pulled from [https://gitlab.xiph.org/xiph/opus](https://gitlab.xiph.org/xiph/opus/).
Opus is licensed under the [New BSD License](https://wiki.xiph.org/XiphWiki:Copyrights).