Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).