Use audio uint to play iLBC but the AudioBuffer is nil in Callback

Hi all , now i try to use audio uint to play iLBC stream , but in the render callback the audiobuffer of the ioData always be null , can you give me some advices , thanks , my code is below:
init code:
OSStatus err = noErr;
if (m_bPlayChannelIsInitialized)
return err;
m_DataSource = dataSource;
SetASBDFormatCanonical( numChannels, sampleRate);
AudioComponentDescription desc;
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_RemoteIO;
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
desc.componentFlags = 0;
desc.componentFlagsMask = 0;
AudioComponent comp = AudioComponentFindNext(NULL, &desc);
AudioComponentInstanceNew(comp, &m_OutputUnit);
AURenderCallbackStruct output;
output.inputProc = OutputProc;
output.inputProcRefCon = this;
err = AudioUnitSetProperty(m_OutputUnit, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &output, sizeof(output));
err = AudioUnitSetProperty(m_OutputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &m_InputDataASBDFormat, sizeof(m_InputDataASBDFormat));
m_bPlayChannelIsInitialized = true;
return err;
SetASBDFormatCanonical:
m_InputDataASBDFormat.mFormatID = kAudioFormatiLBC;
m_InputDataASBDFormat.mFormatFlags = 0;
m_InputDataASBDFormat.mSampleRate = sampleRate;
m_InputDataASBDFormat.mBitsPerChannel = 0;
m_InputDataASBDFormat.mChannelsPerFrame = numChannels;
m_InputDataASBDFormat.mFramesPerPacket = 240;
m_InputDataASBDFormat.mBytesPerFrame = 0;
m_InputDataASBDFormat.mBytesPerPacket = 50;
Message was edited by: asnor

Sorry, I didn't suggest debugging. I can see that activity...
Did you follow the link and consider testing according to the information on that page?

Similar Messages

  • I have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help

    have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help

    Check in "System Preferences">"Energy Saver" to see if you have the "Computer Sleep" bar set too low.

  • A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    Setup for remote app: http://support.apple.com/kb/ht1947
    Specifically:
    Set up Apple TV (2nd and 3rd generation)
    On Apple TV, select Settings from the main menu.
    Select General > Remotes > Remote App. If Home Sharing isn't set up on your Apple TV, you should turn it on.
    Apple TV (2nd and 3rd generation) uses Home Sharing to stream content from your iTunes library on your computer to your HDTV.  If  you connect your Apple TV to your iTunes library using  Home  Sharing, you can use Remote to browse and play content from any  iTunes library in the Computers   section of your Apple TV. You can also  use Remote to select  between available speakers to enhance  your  audio and video experience.

  • Tried to connect my ipod to TV through USB. Can play music but the TV cant detect video files

    Hi. I have an ipod nano 4th generation. I am obsessed with Doctor Who but unfortunately I do not have BBc America. I watch from itunes on my PC. I would like to sync the shows on the ipod and watch on TV. I am aware i can purchase apple's A/V cable, but i have found that my TV also has a USB port. I plugged in my ipod and four menus came up, "video" "pictures" "music" and "settings". I can play music but the Tv wont find the video files on the ipod.
    Thanks!!!!

    iTunes Match on your computer can give you the same higher quality files. 
    Run iTunes on your computer.  Show your music library by Song in list view.  Add the columns for Bit Rate, Kind, and iCloud Status to the list view.
    Any song that is shown as Matched for iCloud Status, that is NOT already 256 kbps (or higher) for Bit Rate can be downloaded from iCloud at 256 kbps AAC.  For example, if you have an old album from a music CD that you ripped years ago at 128 kbps MP3, and it is "matched" by iTunes Match, you can replace the lower quality files you have now with 256 kbps Match AAC audio file (which is shown for Kind).
    To do so, select the song, or a set of songs, on the library list.  Press Delete.  Confirm you want to delete the song (but do NOT check the box to delete song from iCloud) and choose to move song file to the Trash.  The songs remain on your iTunes library list, with a "cloud" download button next to the song name. 
    Click that button to download the song from iCloud.  Because the song is Matched, you get the replacement as a 256 kbps AAC audio file, instead of the original 128 kbps MP3 file (or whatever lower quality format it was before).
    You can go through your iTunes music library, and replace lower quality Matched songs with higher quality versions, thanks to iTunes Match.

  • What can be done to correct slow video or freezing in Adobe Premiere Elements 12? Sound plays fine but the video is too slow to even start a project.

    Sound plays fine but the video is too slow to even start a project.

    film78
    On what computer operating system is your Premiere Elements 12 running on? Have you updated 12 to 12.1 yet? If not, please do so by using an opened project's Help Menu/Update.
    Not enough information in order to help you.
    Looking for
    1. Properties of source media (including file extension and brand/model/settings of camera that recorded the video).
    2. Is problem restricted to one particular file in one particular project? What happens if you start a new project? What is the
    duration and size of the project when performance is slow and freezing sets in? What are you doing in the program when this happens?
    3. Using a pen and tablet device instead of a mouse?
    4. Does problem exist if antivirus and firewall(s) are disabled?
    5. Please describe computer environment, including dating on video card/graphics card driver version. Did you install the program to the
    default Local Disk C? Where are the Scratch Disks directed and how much free space there?
    Lots more questions, but let us start here and then decide what next based on your reply.
    Thank you.
    ATR

  • I just got my MIDI to USB cable, fired up Garageband.  I clicked the basic lessons, tried Play.  But the lesson guy is playing.  I'm the one who needs the practice.

    I just got my MIDI to USB cable, fired up Garageband.  I clicked the basic lessons, tried Play.  But the lesson guy is playing.  I'm the one who needs the practice, not him.  Please help.  I don't know what I'm doing.

    G35Guy:
    Well, if that's the case, you must have a different finish on yours than I have on mine. Either that or you are extrordinarily careful when using it. Mine literally scratches when using a microfibre cloth. I would really like to know whether yours is somehow different. It would really piss me of if some people got a good quality exterior that doesn't scratch and some of us got the opposite. Did you try holding your player under a light to see if there is anything. You may just be looking at it in bad lighting. I find it hard to believe, unless your unit has a different type of plastic cover, that it hasn't received any type of scratches. Can you take a picture of it's It probably seems as though I don't believe you. That's not the case. Its just that I was so careful not to scratch it last night and it got scratched anyway. I have read of similar experiences by others who have the Vision:M as well.
    I wish I could return mine and get a different color, it really upsets me that a $300 item that is meant to be hand held and used heavily scratches this easily!! If anyone from creative is reading this, I would like to know what you plan to do about it! I didn't pay all of that money to have this player look like Sh*t when I am only using it the way it was intended and am being very careful at that!
    John

  • My macbook wont start the screen turn blue and stay like that for hrs. It only work when i use safe mode, i try to use disk utilities to fix it but the disk utilities keep saying error and a bunch of other stuff. I dont the cds the comp came with, help.

    my macbook wont start the screen turn blue and stay like that for hrs. It only work when i use safe mode, i try to use disk utilities to fix it but the disk utilities keep saying error and a bunch of other stuff. I dont the cds the comp came with, help. i've tried the command s command p command v but nothing i've tried to the safe mode then a quick restart but nothing
    disk utility give me this:
    Process:         Disk Utility [371]
    Path:            /Applications/Utilities/Disk Utility.app/Contents/MacOS/Disk Utility
    Identifier:      com.apple.DiskUtility
    Version:         11.5.2 (298.4)
    Build Info:      DiskUtility-2980400~60
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [86]
    Date/Time:       2013-11-05 03:29:41.247 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          9522 sec
    Crashes Since Last Report:           29
    Per-App Interval Since Last Report:  981 sec
    Per-App Crashes Since Last Report:   25
    Anonymous UUID:                      F6B8E263-76C8-4C7D-AA58-48134BF4BA78
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   libobjc.A.dylib                         0x0000000100c62fbc _read_images + 312
    1   libobjc.A.dylib                         0x0000000100c79721 map_images_nolock + 1266
    2   libobjc.A.dylib                         0x0000000100c62761 map_images + 115
    3   dyld                                    0x00007fff5fc039c5 dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) + 853
    4   dyld                                    0x00007fff5fc0c849 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&) + 201
    5   dyld                                    0x00007fff5fc04d54 dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&) + 118
    6   dyld                                    0x00007fff5fc08f7c dlopen + 490
    7   libSystem.B.dylib                       0x0000000100a14e40 dlopen + 61
    8   com.apple.CoreFoundation                0x0000000100d78ef7 _CFBundleDlfcnLoadBundle + 231
    9   com.apple.CoreFoundation                0x0000000100d77e97 _CFBundleLoadExecutableAndReturnError + 1191
    10  com.apple.Foundation                    0x0000000101008355 _NSBundleLoadCode + 638
    11  com.apple.Foundation                    0x0000000101007c78 -[NSBundle loadAndReturnError:] + 742
    12  com.apple.Foundation                    0x000000010101960c -[NSBundle principalClass] + 38
    13  com.apple.framework.DUSupport           0x0000000100082080 -[DUModuleManager(_private) findDUModules:] + 405
    14  com.apple.framework.DUSupport           0x0000000100081ed9 -[DUModuleManager orderedModuleListOfModules] + 40
    15  com.apple.DiskUtility                   0x0000000100006082 0x100000000 + 24706
    16  com.apple.DiskUtility                   0x0000000100005f59 0x100000000 + 24409
    17  com.apple.AppKit                        0x0000000101444625 -[NSWindowController _windowDidLoad] + 538
    18  com.apple.AppKit                        0x00000001013e1f77 -[NSWindowController window] + 112
    19  com.apple.AppKit                        0x00000001015f61d9 -[NSWindowController showWindow:] + 47
    20  com.apple.AppKit                        0x00000001015c7c5c -[NSDocument showWindows] + 98
    21  com.apple.AppKit                        0x00000001015c64bb -[NSDocumentController openUntitledDocumentAndDisplay:error:] + 340
    22  com.apple.AppKit                        0x00000001014f7b44 -[NSDocumentController(NSInternal) _openUntitled] + 111
    23  com.apple.AppKit                        0x00000001014f79ab -[NSApplication _doOpenUntitled] + 257
    24  com.apple.AppKit                        0x00000001014f733b -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 185
    25  com.apple.AppKit                        0x00000001014f6fd9 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
    26  com.apple.Foundation                    0x0000000100ffd0d6 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
    27  com.apple.Foundation                    0x0000000100ffcf06 _NSAppleEventManagerGenericHandler + 114
    28  com.apple.AE                            0x0000000104d7332b aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
    29  com.apple.AE                            0x0000000104d73224 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
    30  com.apple.AE                            0x0000000104d7312b aeProcessAppleEvent + 210
    31  com.apple.HIToolbox                     0x00000001028a0619 AEProcessAppleEvent + 48
    32  com.apple.AppKit                        0x00000001013fc095 _DPSNextEvent + 1191
    33  com.apple.AppKit                        0x00000001013fb801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    34  com.apple.AppKit                        0x00000001013c168f -[NSApplication run] + 395
    35  com.apple.AppKit                        0x00000001013ba3b0 NSApplicationMain + 364
    36  com.apple.DiskUtility                   0x0000000100002009 0x100000000 + 8201
    37  com.apple.DiskUtility                   0x0000000100001db8 0x100000000 + 7608
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x0000000100a27c0a kevent + 10
    1   libSystem.B.dylib                       0x0000000100a29add _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                       0x0000000100a297b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                       0x0000000100a292de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                       0x0000000100a28c08 _pthread_wqthread + 353
    5   libSystem.B.dylib                       0x0000000100a28aa5 start_wqthread + 13
    AND MORE TOO MUCH TO COPY N PASTE HELP PLEASE!!!!!

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    Don't put it in the Header.
    Peter

  • I imported files from an external hard drive to Itunes on a new computer.  they imported & play fine, but the ratings & playlists are gone & i am unable to update any info.  I found a file name playlist on old drive & imported now most files are missing!

    I imported files from an external hard drive to Itunes on a new computer.  they imported & play fine, but the ratings & playlists are gone & i am unable to update any info.  I found a file name playlist on old drive & imported now most files are missing!  Help!

    Can you locate the iTunes Library.itl file on the old drive? Ideally you would have simply copied over the entire iTunes folder structure from <User's Music> on the old computer into <User's Music> on the new one to transfer the library will all playlists, ratings, play counts etc. intact.
    tt2

  • HT1212 I just bought a used i pod touch from work but the screen says Ipod is disabled, how do i clear that to get back and enter in the passcode

    I just bought a used i pod touch from work but the screen says Ipod is disabled, how do I clear that to get back and eneter in the passcode?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
      How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • I often use my iPhone to take video but the result is NTSC and I use PAL, how I can change? Can somebody help me? Thanks

    I often use my iPhone to take video but the result is NTSC and I use PAL, how I can change? Can somebody help me? Thanks

    My problem is when I transfer the movie on Final Cut for the assembly of the film, I know that I can convert with MPEG Streamclip but I would like to take my film directly on PAL. Is that possible? In the previous message I wasn't clear, I hope now I explained myself better. Thanks for help

  • Itunes is saying it does not have enough room to store our music library.  any ideas on what we should do?  we deleted some play lists but, the warning still is coming up.  thank you,

    itunes is saying it does not have enough room to store our music library. we deleted some play lists but the message is still showing up.  Any ideas?  Thank you.

    itunes is saying it does not have enough room to store our music library. we deleted some play lists but the message is still showing up.  Any ideas?  Thank you.

  • HT201263 My iphone started freezing 2 days ago while taking a picture and again while using an application and then restart but the battery was never low. today it froze,restarted then showed white static looking lines and won't turn on at all. Please Hel

    My iphone started freezing 2 days ago while taking a picture and again while using an application and then restart but the battery was never low. today it froze,restarted then showed white static looking lines and won't turn on at all. Please Help

    I can't restart the iphone to reset or restore. I held the homebutton down and the homebutton + sleepbutton down at the same time. The apple doesn't even appear.
    I've also tried connecting it to the charger. It's not charging and dosn't recongize it.
    I tried connecting the phone to itunes on the computer to see if it registered and charged it but that didn't work either.

  • Itunes stops working after say half hour of use and will not play next song, the only way to get it working again is to close and reopen, then it works fine till next time, but the problem keeps returning

    itunes stops working after say half hour of use and will not play next song, I have to close and reopen, it works fine till next time, it keeps happening on a regular basis, HP pavilion laptop, g6 series,
    Window 7 64 bit

    Hello davewood26,
    The following article provides steps that can help get iTunes stabilized.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

  • Audio Won't Play Except From the Beginning

    Hi, I'm currently trying to learn how to animate using Flash CC 2014.
    So I understand that in order to import audio into Flash, you need to create a layer for it, which I have done successfully.
    But my issue is that I've seen that in the past (in flash animation tutorials), if you scroll through the animation's timeline, you can hear the audio play from where you left off, and if you scroll, you can even hear the audio scroll backwards and forwards with your mouse.  But when I do so, I can't hear anything.
    I can only hear the audio if I play the animation from the beginning, but if I am going to be animating and lip syncing, it's going to grow incredibly tedious for me to have to play through the entire animation to hear what I need to animate next.
    Is there a fix for this or is there a setting I have to apply so that audio I've imported plays wherever I continue from the playhead?
    I'm using Flash on a Mac if it's any help as well.
    Thanks in advance for any help or advice.

    Oh my god I feel like an idiot.
    Yeah, I had Canvas open because it was the first thing on the list and I assumed it was synonymous to a blank document.
    I opened it in ActionScript and changed the properties and it worked perfectly, thank you and @kglad so much, I can finally get some work done!
    Thanks again for your help!

Maybe you are looking for