Grimi94 / WAVCat

Swift Library that allows you to concatenate WAV files without any sweat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WAVCat

WAV concat in iOS made simple

Usage

Create instance with initial data

var audioPath = NSBundle.mainBundle().pathForResource("audio", ofType: "wav")!
var audioData = NSData(contentsOfFile: audioPath)!
var wavcat = WAVCat(data: audioData)
        

Now lets append some data

for i in 1...10 {
	wavcat!.append(otherAudioData)
}

To get the concatenated data just:

var finalAudioData = wavcat.getData()

From there you can save it, play it, send it, etc

About

Swift Library that allows you to concatenate WAV files without any sweat


Languages

Language:Swift 100.0%