[iphone]How to get 2 buffers in AudioBufferList

I set the audio stream like this:
m_InputDataASBDFormat.mFormatID = kAudioFormatLinearPCM;
m_InputDataASBDFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
m_InputDataASBDFormat.mSampleRate = sampleRate;
m_InputDataASBDFormat.mBitsPerChannel = 16;
m_InputDataASBDFormat.mChannelsPerFrame = 2;
m_InputDataASBDFormat.mFramesPerPacket = 1;
m_InputDataASBDFormat.mBytesPerFrame = 2;
m_InputDataASBDFormat.mBytesPerPacket = m_InputDataASBDFormat.mBytesPerFrame;
but in the callback of the kAudioUnitProperty_SetRenderCallback:
renderProc(void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
here the ioData->mNumberBuffers is always 1 , and i need two channel buffers , what's the issue?

But here i have set the m_InputDataASBDFormat.mChannelsPerFrame = 2 , so i think i should have 2 channel buffers , isn't it ?

Similar Messages

  • Hi guys.. anyone can help me? I lost my iphone, how to get back all the data is there?

    I lost my iphone, how to get back all the data is there?

    Thank you for explain kappy..
    how if I want to get my skype message? is it can ? help me..

  • I have lost my iphone,how to get

    Respected Sir,
    Requested to you that my iphone 5 with imei no:013421007288494 has been lost, So how to get my iphone back please do best support us.

    Hi,
    Did you activate the app find my iPhone? if yes, find asap a computer or an iPhone and connect to icloud.com and log in with your username and password. If your lucky you will see where your phone is.
    Thx
    YS

  • Purchased song iphone how to get on IMac Itunes?

    I just purchased a song on my iphone in itunes. How do I get this on my IMac in Itunes? I hooked it up and synced but it did not work. I also checked for new available downloads in teh store and there was nothing any help would be great!

    It should. Page 165 of the manual:
    "Syncing Purchased Content
    iTunes automatically syncs everything you’ve downloaded or purchased on iPhone to
    your iTunes library when you connect iPhone to your computer. This lets you access
    the downloads on your computer and provides a backup if you delete purchased
    content from iPhone.
    Purchased content is synced to the “Purchased on <name of your iPhone>” playlist.
    iTunes creates the playlist if it doesn’t exist. iTunes also copies your purchases to the
    Purchased playlist that iTunes uses for purchases you make on your computer, if that
    playlist exists and is set to sync with iPhone.
    Downloaded podcasts are synced to the Podcast list in your iTunes library. "

  • Hard Drive gone, pictures on Iphone, how to get pictures back on to my Macbook

    Is there a way to get pictures that are part of the library on my iphone on to my macbook.  I find it completely unbelievable that Apple has purposely made it impossible to be able to get 4 YEARS OF PICTURES off my Iphone and back onto my computer.  We have a family trip to Holland on this, numerous camping trips, a trip to Paris, Mexico, my kids birthday parties, family events, Christmas.  Im totaly devastated.
    IF anyone knows how IM DESPERATE.
    Thank you
    Janel V

    Welcome to Apple Support Communities.
    Who informed you that "Apple has purposely made it impossible to get 4 YEARS OF PICTURES off (your) iPhone and back onto (your) computer?"
    If all the original photos are still stored on your iPhone, and your iPhone is still functioning properly, once your hard drive is replaced and OS X and iTunes is reinstalled, you should be able to re-acquire them on your computer by reconnecting your iPhone to your computer, the way you got them to the computer originally.
    There are very expensive data-recovery services that can often retrieve files from damaged or broken hard drives. The cost is "very expensive." Reputable data-recovery services will give you a free evaluation and estimate: http://www.krollontrack.com/ps211-data-recovery/?gclid=CNKF3d-gra8CFYXNKgod7nR9m w
    Begin now and take appropriate precautions with multiple types of duplicates/backups for all your important irreplacable files and documents, digital or otherwise.(external drive, iCloud or similar online storage, CDs/DVDs, and paper copies in a bank vault).

  • HT1338 i have reset all seting from my iphone , how can get back software  ?

    hi \
    please help me ,
    i have restart my iphone with all setting and app, and now no any app, ,  ( activation request could not be completed , if the problem ,,,,,,, ) like this message have in screen ..
    how can i get back ?

    Well first, you have to activate it.  If it can't be activated there's something wrong, not with the software but with your billing or the software version (hopefully you're running iOS 6.1.x).
    Once you've done that, if you have an iCloud or iTunes backup, you can restore from that.  If you don't have a backup, then you've lost all your settings and data, but you can painstakingly re-download all your apps from iTunes.

  • How to get Purchased Ringtones back on iphone, How to get Purchased Ringtones back on iphone

    I purchased 4-5 ringtones over a period of time and got my phone replaced in england since then i dont have them on my phone how do it get them back ? Please help

    Welcome to the Apple Community.
    Uncheck the ringtones in your sync options in iTunes and apply, check them again and apply once more.

  • IPhone: How to get the original photo image with  Picker

    Hi!
    I'm trying to pick and send (via HTTP) the original image taken by the camera, the 1,600 x 1,2000 image that's available in iPhoto after syncing.
    As far as I gathered, the UIImage doesn't help me here, since it's scaled down to 640x480, probably to safe memory. But one should supposedly be able to access the underlying CIImage.
    Here's what I'm doing right now:
    I'm setting up an ImagePickerController in my
    - (void)viewDidLoad
    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    [self refreshView:self];
    and process the picked image with
    - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingImage:(UIImage )image editingInfo:(NSDictionary )editingInfo
    CGImageRef imgRef = image.CGImage;
    CGFloat owidth = CGImageGetWidth(imgRef);
    CGFloat oheight = CGImageGetHeight(imgRef);
    NSLog(@"Original size = %f %f",owidth,oheight);
    NSData imageData = [NSData dataWithData: UIImagePNGRepresentation(image)];//(image, 1.0)
    However, I still get the following output:
    2008-07-25 11:44:58.543 myApplication[1564:20b] Original size = 640.000000 480.000000
    Obviously still scaled down - but there must be a way to access the original.
    What am I doing wrong?

    Yes, I'm trying on the iPhone, as the camera is unavailable on the simulator.
    Here is the code I'm using:
    // In my main code, to initialise the picker
    UIImagePickerController *picker;
    // Check if camera is available
    if ( ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] )
    UIAlertView *alertView = [[UIAlertView alloc]
    initWithTitle:@"Can't access camera" message:@"The camera is unavailable!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil ];
    [alertView show];
    [alertView release];
    return;
    picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    picker.delegate = self;
    [_myView addSubview:picker.view];
    [_myView performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
    // The delegate methods
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
    NSLog( @"Image dimensions: %fx%f", image.size.width, image.size.height );
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    }

  • [iPhone] How to get alarms?

    Hi!
    Is there a way to get alarms set by Clock.app from iPhone SDK?
    I want to make my own alarm app using official iPhone SDK. No jailbraking.

    PLEASE, PLEASE, tell me that this has been updated or will very soon! I need my TASKS and NOTES! Why did they tell me at the Apple store that it would work perfectly with my Outlook if it only works partially?

  • [iPhone] How to get current device orientation...

    Again, Should be simple, but I am having trouble finding a way to poll the device to get it's current orientation. That is, where the status bar would be drawn if there is one. I see notifications for changes, etc.. but sometimes I want to check the orientation of the device NOW.
    thanks in advance for the pointers.
    michael golden

    Search bar in Docs is sad
    Getting the Current Device Orientation
    orientation property
    generatesDeviceOrientationNotifications property
    – beginGeneratingDeviceOrientationNotifications
    – endGeneratingDeviceOrientationNotifications

  • 4G iphone how to get device "known"

    Hello,
    We just received a replacement phone but apparently no apple care provided, needing assistance getting device "known" to use. Already charged and put in old sim card, re-started, .....?

    Contact your carrier.

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  Help!

    I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  I have deleted it from iTunes but cannot get it off the phone.  Help!

    The banner usually indicates that the memo is "Paused." If you go back into voice memos, touch the word "Done" beside the big red pause button, give it a name, then it will show in a list. Touch the memo in the list then touch the trash can icon that should appear.

  • I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some but not all are also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some are now also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    Go to settings>messages>send and receive at>you can be reached by iMessages at> Uncheck your phone number and you can select your Apple ID emal address if you want to use that for messages.

  • I have a Verizon IPhone 4 and i can't figure out how to get my ringtones from an app to my iTunes account, it doesn't have a tab for Ringtones! I have tried unplugging it and checking if would show up but it didn't, how do you enable the ringtone folder?

    I have a verizon IPhone and i can't figure out how to get my ringtones from the app to iTunes, my account doesn't have a ringtone section in the liRingtone Folder?brary, how do you enable the ringtone folder?

    Edit > Preferences.  Select the check box for Ringtones, this will add them to the listing in iTunes. 
    Not sure that really answers your question though.

Maybe you are looking for

  • Vendor evaluation  URGENT

    While using the t- code ME61 for Vendor Evaluation I am getting an error that Purchasing organization data is incomplete Pls. Help me regards

  • All of a sudden usb ports quit working

    usb ports quite working.  There does not seem to be anything in them.  Any ideas. 

  • Audio support for Solaris 8 x86

    Hi, i have windows 2000 & solaris 8 installed ,everythg is fine exept sound ,how/where/what packages are needed for x86 Intel platform.

  • I cannot print ebay shipping labels after Firefox upgrade

    After the latest Firefox upgrade to 22.0, I can no longer print shipping labels from ebay or PayPal. For ebay, I can print the invoice and for PayPal I can print the total charge paper. However, no pop-up shows when I go to print the actual shipping

  • After Effects, Failing to Download

    Adobe cloud have been purchased. As there are a lot of programmes, i decided to leave the Pc on over night so it would be done for the morning I return back into work. Everything seems to download fine, other than After Effects. This loads up to 83%