8000 GitHub - smishal88/OggDecoder: OGG decoder for iOS/MacOS based on Vorbis framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OGG decoder for iOS/MacOS based on Vorbis framework

License

Notifications You must be signed in to change notification settings

smishal88/OggDecoder

 
 

Repository files navigation

OggDecoder

Convert ogg and oga files in Swifty way

swift-version License Platform SwiftPM compatible

Introduction

OggDecoder was created in order to convert a audio filed(ogg and oga) that are not playable by iOS AVFoundation into .wav file. It contant a two XCFramework based on liibogg(https://github.com/gcp/libogg) and vorbis(https://github.com/xiph/vorbis) framework.

Requirements

OggDecoder works on the following platforms:

  • iOS 13+
  • Mac OSX 10.14+

Installation

To use OggDecoder with Apple's Swift package manager, add the following as a dependency to your Package.swift:

.package(url: "https://github.com/smishal88/OggDecoder.git")

Usage

Ogg decoder is designed to made a ogg/oga files converting into wav as simple as possible. To do so you have to:

  1. Import OggDecoder
import OggDecoder
  1. Decode file
let decoder = OGGDecoder()
let oggFile = oggFileURL()
decoder.decode(oggFile) { (savedWavUrl: URL?) in
  // Do whatever you want with URL
  // If convert was fail, returned url is nil
}

Available methods:

decoder.decode(URL) -> URL?
decoder.decode(URL, completion: (URL?) -> Void)
decoder.decode(URL, into: URL) -> bool
decoder.decode(URL, into: URL, completion: (Bool) -> Void)

License

OggDecoder is available under the MIT License.

About

OGG decoder for iOS/MacOS based on Vorbis framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 82.8%
  • C++ 13.1%
  • Swift 2.5%
  • Other 1.6%
0