Results 1 to 2 of 2
  1. #1

    Member Since
    Jul 31, 2008
    Question Core Audio AudioQueueEnqueueBufferWithParameters
    (I have to say that I am quite new to Core Audio.)
    I am trying to use AudioQueueEnqueueBufferWithParameters function so I can enqueue buffers corresponding a certain time, like song navigation.
    (suppose a have a GUI time line, (for example UISlider) and I want to be able to go to any audio's position in time, so I can enqueue the corresponding buffers to that time and enqueue them to be played -> As far as I understand this can be accomplished by using AudioQueueEnqueueBufferWithParameters)

    For example in iPhone speakHere project > AudioPlayer.m > playbackCall function
    there is

    AudioQueueEnqueueBuffer (
    			([ player packetDescriptions ] ? numPackets : 0),
    			[ player packetDescriptions ]
    but I want to have more control so I would use

    UInt32 inTrimFramesAtStart, inTrimFramesAtEnd;
    AudioQueueTimelineRef myOutTimeline; 
    AudioQueueCreateTimeline(inAudioQueue, &myOutTimeline); //is this correct?
    			([player packetDescriptions] ? numPackets : 0),
    			[player packetDescriptions],
                            inTrimFramesAtStart,  //???????
                            inTrimFramesAtEnd,    //???????
                            0,  //since I am not passing any parameter
                            NULL,  //since I am not setting any parameter
                            NULL,  //ASAP
                            &myOuTimeline, //something tells me that is not good
    As you can see this function's parameters are incomplete.
    I have read the documentation but I still cannot get what the heck put inside inTrimFramesAtStart and inTrimFramesAtEnd and &myOutTimeline

    Can any one explain me kindly? I would be very pleased.
    Thanks in advance.

  2. #2

    Member Since
    Oct 30, 2008
    audio timeline

    I'm working on a similar problem. Did you find a solution? If so, any links, references, etc. wd be appreciated.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Core Audio Limiting / Cut off
    By JoshJ in forum OS X - Operating System
    Replies: 0
    Last Post: 11-29-2014, 08:42 AM
  2. Core Audio Driver missing
    By forest_wizard in forum OS X - Operating System
    Replies: 12
    Last Post: 05-23-2014, 02:49 AM
  3. No Core Audio
    By sus4 in forum OS X - Operating System
    Replies: 3
    Last Post: 12-12-2013, 10:15 PM
  4. core audio failing
    By tripleb in forum Music, Audio, and Podcasting
    Replies: 0
    Last Post: 05-17-2009, 03:45 PM
  5. leopard and core audio help!!!!!!!!!!
    By stay where i ca in forum OS X - Operating System
    Replies: 1
    Last Post: 11-07-2007, 05:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts