• 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
Re: How to perform fast forward/rewind with AudioQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to perform fast forward/rewind with AudioQueue


  • Subject: Re: How to perform fast forward/rewind with AudioQueue
  • From: "Xu Ting" <email@hidden>
  • Date: Thu, 2 Oct 2008 17:50:52 +0900

Hi, Craig,

I think with your help, I had figured out how to perform fast forward and rewind, but I still have some questions about some details.

Q1. When I specify a packet index to be read, should I clean the buffer? If so, how should I do? I had tried free buffer and refill the buffer from the packet index, but it did not work correctly.

Q2. After I clicked the fast forward button or rewind button, I found out that the AudioQueueGetCurrentTime doesn't work as I expected. How should I get the correct time? Should I calculate the time by current packet index? If so, I can not get the correct packet index which is currently playing. How should I get the correct packet index?

Thank you!

- Tonny

--
Life is like a box of chocolates, u never know what u'r gonna get.


On Wed, Oct 1, 2008 at 2:28 AM, Craig Hopson <email@hidden> wrote:
Hi Tonny,

Check this list again looking for:
       Subject = "Re: Audio playback at a specific position?

-Craig


On Sep 30, 2008, at 5:45 AM, Xu Ting wrote:

Hi, guys,

I am a newbie to digital audio programming and completely have no idea on how to use Audio Queue, With the XCode documentations, I had implemented play, pause, stop with Audio Queue, but now I have to implement the fast forward/rewind with Audio Queue APIs, can anybody tell me how to do it?

I had searched Google and this mailing list, but I cannot find any correct solution for fast forward/rewind.

Here is what I am gonna do:
a. I have a CAF file, and a meta-data file which indicate the start time and the end time of each pieces in the CAF file.
b. When user press a play button, I need to play the CAF file.[I had it done.]
c. When user press a pause button, I need to pause the CAF file.[it also had been done.]
d. When user press a fast forward button, I need to play the CAF at the time which is specified by the meta-data file, untill the file reaches the end.
e. When user press a rewind button, I need to play to the previous time specified by the meta-data.

Now, how can I implement it?

Thanks in advance.
Tonny Xu


--
Life is like a box of chocolates, u never know what u'r gonna get.
_______________________________________________
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


 _______________________________________________
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: How to perform fast forward/rewind with AudioQueue
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Problem with Logic Pro 8 and VSTGUI
  • Next by Date: iphone audiounit mixers
  • Previous by thread: Why No MIDI on iPhone?
  • Next by thread: Re: How to perform fast forward/rewind with AudioQueue
  • Index(es):
    • Date
    • Thread