• 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: sample rate conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >sample rate conversion (From: "Edwards, Waverly" <email@hidden>)
 >Re: sample rate conversion (From: Brian Willoughby <email@hidden>)
 >RE: sample rate conversion (From: "Edwards, Waverly" <email@hidden>)

  • Prev by Date: play icon in status bar & remote control
  • Next by Date: What became of the deprecated functions' channel parameters?
  • Previous by thread: RE: sample rate conversion
  • Next by thread: resetting session category behaviour under 3.x and 4.0
  • Index(es):
    • Date
    • Thread