RE: sample rate conversion
RE: sample rate conversion
- Subject: RE: sample rate conversion
- From: "Edwards, Waverly" <email@hidden>
- Date: Fri, 10 Sep 2010 17:34:06 -0500
- Acceptlanguage: en-US
- Thread-topic: sample rate conversion
After going over this *many* times, I have a solution. I am not entirely sure it's bulletproof but it is working. What was obvious to probably everyone else is that I had to add a conversion (multiplication) factor to the input sample rate and output buffer size. It took a lot of observation and playing with the code before I noticed the pattern to make it work. It really is not as easy as just setting the output sample rate. I could not figure that out from the documentation. Although I have it working, it is still not very intuitive but I can make sense of it.
Thank you Mr. Willoughby for giving me guidance on the matter.
-----Original Message-----
From: coreaudio-api-bounces+waverly.edwards=email@hidden [mailto:coreaudio-api-bounces+waverly.edwards=email@hidden] On Behalf Of Edwards, Waverly
Sent: Tuesday, September 07, 2010 10:25 AM
To: email@hidden
Subject: RE: sample rate conversion
I'm feeling a bit dense here. I am attempting to do everything in memory. [snip]
The first is that I cant seem to figure out how to get the conversion done and available to me in memory without have to write the data out to disk
and then reading it back in. The second was really unexpected. When I wrote my 10 second 22050 sample rate file out to disk, it reads back as a
5 second 44100 sample rate. The sample rate was desired but the play duration was half the length.
_______________________________________________
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