|
Applications Programming InterfaceThe publically callable functions of libsamplerate are all listed in the <samplerate.h> header file. In order to use any of the functionality of libsamplerate, you need to add #include <samplerate.h> to the top of any function that call any of the following functions. You will also need to link you binary with the libsamplerate library. The API allows three methods for accessing the capabilies of the library:
The parts of the API which are common to both are:
All three versions of the API are restricted to operating on buffers of ISO C Standard float data. However, there are two auxillary functions for converting arrays of float data to and from short data. Note: The tests/ and examples/ directories of the source code distribution contain numerous example programs showing the use of the library. |