• 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: Playing in reverse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playing in reverse


  • Subject: Re: Playing in reverse
  • From: tahome izwah <email@hidden>
  • Date: Thu, 1 Jul 2010 22:29:20 +0200

When you say you "reversed the bytes" - is your sound format 8 bit?

I don't think that this is likely, so reversing bytes will indeed
cause static because you're completely messing up the format that your
data is in.

Instead, you should be reversing the *sample frames* in the buffer
which means that you need to reverse the sort order of the elements in
an array of the data type that you're dealing with.

--th


2010/7/1 Development <email@hidden>:
> I'm trying to  play a track in reverse. I loaded the track, reversed the bytes using an NSData object and subdataWithRange, then used [data bytes] to place it back in to a void pointer. Ok so the buffer is created, the source is created and the two put together correctly. However when I play the sound all I get is static. Does any one know how to play a track in reverse? I have been using OpenAL directly, but am I going to have to do this with something else?
 _______________________________________________
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

References: 
 >Playing in reverse (From: Development <email@hidden>)

  • Prev by Date: Re: Disabling dual-mic noise suppression in iPhone 4?
  • Next by Date: Re: crash-proof AU plugin scanning?
  • Previous by thread: Playing in reverse
  • Next by thread: Re: Playing in reverse
  • Index(es):
    • Date
    • Thread