Re: Playing in reverse
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