• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Song Navigation with AudioQueueEnqueueBufferWithParameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Song Navigation with AudioQueueEnqueueBufferWithParameters


  • Subject: Song Navigation with AudioQueueEnqueueBufferWithParameters
  • From: "Ignacio Enriquez" <email@hidden>
  • Date: Sat, 11 Oct 2008 16:36:01 +0900

Hi everyone.
(I have to say that I am quite new to Core Audio. and new to this list also)
I am trying to use AudioQueueEnqueueBufferWithParameters function so I
can enqueue buffers corresponding a certain time. In other words, 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 (
                       inAudioQueue,
                       bufferReference,
                       ([ 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?

AudioQueueEnqueueBufferWithParameters(
                       inAudioQueue,
                       bufferReference,
                       ([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.


nacho4d
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Song Navigation with AudioQueueEnqueueBufferWithParameters
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: AudioUnitScheduleParameters with an AUTimePitch unit.
  • Next by Date: ugh, still having issues with audio queues and audio streams
  • Previous by thread: Re: AudioUnitScheduleParameters with an AUTimePitch unit.
  • Next by thread: Re: Song Navigation with AudioQueueEnqueueBufferWithParameters
  • Index(es):
    • Date
    • Thread