FMODIOS
FMODIOS copied to clipboard
Swift
Swift version for this?
How to save audio with effect on local phone with any UIButton in swift?
Swift version for this?
- #import "FMAudioPlayer.h" to bridging header file.
- Define @IBOutlet weak var fmPlayer: FMAudioPlayer!
- Define UIButton action or whtever: @IBAction func CustomAct(_ sender: Any) { let option = FMAudioPlayerOption() let audioFMOD = FMAudioPlayer(path: selectedPath***, option:option) audioFMOD!.stop() option.flag = FMAudioPlayerOptionFlag.lolita }
!!!(*** is Your audioFile path)!!!