Play an audio file using RemoteIO and Audio Unit

Play an audio file using RemoteIO and Audio Unit

By : Mdot Ae
Date : November 21 2020, 07:01 PM
it helps some times You just need to convert your audio file to pcm data and then feed that data to the RemoteIO interface during the playback callback.
To read your audio file in, you will want to use ExtAudioFileOpenURL and ExtAudioFileRead. Also make sure to set your audio format with ExtAudioFileSetProperty to convert to your target pcm format (which should be packed, signed integer PCM data).
code :

Share : facebook icon twitter icon
Audio latency OpenAL or RemoteIO Audio Unit

Audio latency OpenAL or RemoteIO Audio Unit

By : uzair
Date : March 29 2020, 07:55 AM
I hope this helps you . RemoteIO is because it's the lowest level interface.
My buffer size is 512 frames, which at 44.1kHz is about 11ms.
HTML5 Audio: How to Play only a Selected Portion of an Audio File (audio sprite)?

HTML5 Audio: How to Play only a Selected Portion of an Audio File (audio sprite)?

By : user3049084
Date : March 29 2020, 07:55 AM
hop of those help? I think there are a couple of problems here.
Firstly, you're adding an event listener every time the user clicks Play 1.
code :
if (currentTime >= 0.5) { ...
if (audio.currentTime >= 0.5) { ...
<audio id="sample" src="http://dl.dropbox.com/u/222645/click1sec.mp3" controls preload></audio>

<a href="javascript:playSegment(0.0, 0.5);">Play1</a>
<a href="javascript:playSegment(0.5);">Play2</a>

var audio = document.getElementById('sample');
var segmentEnd;

audio.addEventListener('timeupdate', function (){
    if (segmentEnd && audio.currentTime >= segmentEnd) {
}, false);

function playSegment(startTime, endTime){
    segmentEnd = endTime;
    audio.currentTime = startTime;
ios audio unit remoteIO playback while recording

ios audio unit remoteIO playback while recording

By : srinivasankonar
Date : March 29 2020, 07:55 AM
help you fix your problem I have not used VOIP or kAudioSessionCategory_PlayAndRecord. But if you want to record/transmit voice picked up from the mic and play back incoming data from network packages: Here is a good sample which included both mic and playback. Also if you have not read this doc from Apple, I would strongly recommend this.
In short: You need to create an AudioUnits instance. In it, configure two callbacks: one for mic and one for playback. The callback mic function will supply you the data that was picked up from the mic. You then can convert and transmit to other devices with whatever chosen network protocol. The playback callback function is where you supply the incoming data from other network devices to play back.
iOS: Audio Unit RemoteIO not working on iPhone

iOS: Audio Unit RemoteIO not working on iPhone

By : Eeranna
Date : March 29 2020, 07:55 AM
will be helpful for those in need I solved my problem. I simply needed to initialize the AudioSession before playing/recording. I did so with the following code:
code :
OSStatus status;

AudioSessionInitialize(NULL, NULL, NULL, self);
UInt32 sessionCategory = kAudioSessionCategory_PlayAndRecord;
status = AudioSessionSetProperty (kAudioSessionProperty_AudioCategory,
                               sizeof (sessionCategory),

if (status != kAudioSessionNoError)
    if (status == kAudioServicesUnsupportedPropertyError) {
        NSLog(@"AudioSessionInitialize failed: unsupportedPropertyError");
    }else if (status == kAudioServicesBadPropertySizeError) {
        NSLog(@"AudioSessionInitialize failed: badPropertySizeError");
    }else if (status == kAudioServicesBadSpecifierSizeError) {
        NSLog(@"AudioSessionInitialize failed: badSpecifierSizeError");
    }else if (status == kAudioServicesSystemSoundUnspecifiedError) {
        NSLog(@"AudioSessionInitialize failed: systemSoundUnspecifiedError");
    }else if (status == kAudioServicesSystemSoundClientTimedOutError) {
        NSLog(@"AudioSessionInitialize failed: systemSoundClientTimedOutError");
    }else {
        NSLog(@"AudioSessionInitialize failed! %ld", status);

Core Audio: kAudioOutputUnitProperty_SetInputCallback on a non-remoteIO unit

Core Audio: kAudioOutputUnitProperty_SetInputCallback on a non-remoteIO unit

By : MaheshKumar Kadamati
Date : March 29 2020, 07:55 AM
To fix this issue Configure a callback on the output (bus 0) of the RemoteIO Audio Unit (instead of the filter unit or input bus), but in that RemoteIO callback, pull (render) from the filter unit. The filter unit will then be called to pull available data from RemoteIO input (bus 1) to process it.
Also fill the output buffers with zeros if you don't want to make any sounds.
Related Posts Related Posts :
  • What is the iPhone simulator IP address?
  • From a 3D modeler to an iPhone app - what are best practices?
  • How to produce an iphone app which calculates the battery status?
  • UIView animation -- horizontal page curl... like a book?
  • Switching xib's in iPhone SDK?
  • How to save a png image to camera roll?
  • Using socket API on IPhone
  • How to ensure YouTube API only returns videos that are streamable on iPhone?
  • CABasicAnimation delegate for animationDidStop?
  • How to test if a web service is available
  • iphone app crash, crash log posted
  • Quartz 2D or OpenGL ES? Pros and cons in the long term, possibility of migration to other platforms
  • How do I get Core Data to create an SQLite DB from my Managed Object Model
  • Can a method return an NSRange?
  • How to change size of UIButton
  • a "+" sign in email address
  • iPhone: value of selectedIndex for tab should be consistent, but isn't
  • how to send MMS from the iphone by programming?
  • Is it a good idea to use ASIHTTPRequest library with three20?
  • Auto launch the video player in Android from the browser like an iPhone does
  • Subview Doesnt AutoSize When Added to Root View Controller
  • How to implement UITableView with multiple columns and sideways scrolling
  • How to run/port MongoDB on iPad?
  • How to insure MFMailComposeViewController doesnt send email when body is not empty?
  • How to add ANY language in app description on AppStore? Tremendous impact on downloads!
  • Play multiple audio files using AVAudioPlayer
  • Infinite loop when adding CATiledLayer to UIView
  • How can I detect if an iPhone OS device has a proximity sensor?
  • setNeedsDisplayInRect: paints a white rectangle only
  • iPhone in App purchase : Working but Not
  • How do I debug production push notifications using Xcode?
  • Possible to play a sound without stopping music?
  • XML Processing on iPhone: What is the best option?
  • iphone Json POST request to Django server creates QueryDict within QueryDict
  • How do I make a UIAlertView appear only once, at the first start-up of an iPhone app?
  • invoking iphone address book within another application?
  • Draw triangle iphone
  • Changing font size of tabbaritem
  • Dynamically add a new row as Add in UITableView in edit mode?
  • Can I change the Bundle Identifier in my app after it's been approved?
  • MKMap Annotations when clicked show a View controller instead of Popup box
  • iPhone - possible to not show keyboard but still show the cursor in a UITextField?
  • Disabling Magnifying Glass in UITextView in an iPhone App
  • Lazy load pages in UIScrollView
  • how to display CFStringType? Like kABHomeLabel
  • how can i load a display in tableview header section iphone?
  • iPhone native app + integrate payment / purchase to buy products
  • How can I do metering/average peak power level in OpenAL?
  • IPhone and Android website design
  • Xcode Project Code Changes Not Updating 100% After Save-Build-Run
  • NSString drawAtPoint Crash on the iPhone (NSString drawAtPoint)
  • Save UIwebview contents to photo gallery
  • Change width of UIImageView
  • iPhone: Group by month - Core Data
  • NSUndoManager grouping problem?
  • iPhone: Override UIButton buttonWithType to return subclass
  • Iphone sdk, Rounded UIImageView FRAME corners, not just masking it
  • iPad application crash in Apple review - cannot replicate in simulator, have crash log
  • Setting tick marks for UISlider
  • Can we add UILabel to splash screen in iphone?
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk