Skip to content

An example of recording, encoding(G729), decoding and playing simultaniously through Audio Unit.

Notifications You must be signed in to change notification settings

partho-maple/PBRecPlayer_Obj-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

PBRecPlayer (Objective-C)

This program provides an example (on Apple's iOS) for how to get audio data from the microphone and reroute it to be heard through the speaker using Audio Unit. It's basically an skeleton of a audio calling app. It records audio, puts the recorder PCM data into TPCircularBuffer. Then it pulls that data, encode it to G729, decode it from G729 and again puts that into another TPCircularBuffer. And at last the player callback pulls that PCM data and plays through. This will work on iOS 6 and higher.

This is based on:

If you don't know anything about digital audio or the core audio framework, I advice you read Apple's "Core Audio overview" to get some idea of what you're doing. Last located at:

N.B. A swift version is available at this link: https://github.com/partho-maple/PBRecPlayer_Swift

About

An example of recording, encoding(G729), decoding and playing simultaniously through Audio Unit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published