Chris@41: Chris@41: Chris@41: Chris@41:
Chris@41:
Chris@41: Chris@41: Chris@41: Chris@41: |
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41: Chris@41: Chris@41:
Chris@41: Secret Rabbit Code (aka libsamplerate) is a Chris@41: Sample Rate Converter for audio. Chris@41: One example of where such a thing would be useful is converting audio Chris@41: from the CD sample rate of 44.1kHz to the 48kHz sample rate used by Chris@41: DAT players. Chris@41: Chris@41: Chris@41:Chris@41: SRC is capable of arbitrary and time varying conversions ; from Chris@41: downsampling by a factor of 256 to upsampling by the same factor. Chris@41: Arbitrary in this case means that the ratio of input and output Chris@41: sample rates can be an irrational number. Chris@41: The conversion ratio can also vary with time for speeding up and slowing Chris@41: down effects. Chris@41: Chris@41: Chris@41:Chris@41: SRC provides a small set of converters to allow quality to Chris@41: be traded off against computation cost. Chris@41: The current best converter provides a signal-to-noise ratio of 145dB Chris@41: with -3dB passband extending from DC to 96% of the theoretical Chris@41: best bandwidth for a given pair of input and output sample rates. Chris@41: Chris@41: Chris@41:Chris@41: Since the library has few dependencies beyond that provided by the Chris@41: standard C library, it should compile and work on just about any Chris@41: operating system. Chris@41: It is known to work on Linux, MacOSX, Chris@41: Win32 Chris@41: and Solaris. Chris@41: With some relatively minor hacking it should also be relatively easy Chris@41: to port it to embedded systems and digital signal processors. Chris@41: Chris@41: Chris@41:Chris@41: In addition, the library comes with a comprehensive test suite which Chris@41: can validate the performance of the library on new platforms. Chris@41: Chris@41: Chris@41: Chris@41: Chris@41: Chris@41: Chris@41: |