A Swift Capsule of FMod Audio Framework
FMod Offical Site: https://www.fmod.com
In you Podfile
, add my private podspec repo OrzGeeker, and use my pods
source 'https://github.com/OrzGeeker/Specs.git'
pod 'OrzFMod'
.package(url: "https://github.com/OrzGeeker/OrzFMod.git", .branch("master"))
Now you can use my FMod Swift Capsule!
import UIKit
import OrzFMod
class ViewController: UIViewController {
var player = FModCapsule()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let FModResBundle = Bundle(for: FModCapsule.self);
player.playStream(withFilePath: FModResBundle.path(forResource: "test", ofType: "xm"))
}
}