diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-04 20:07:44 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-04 20:07:44 +1000 |
| commit | 60f767713227b5405b855e6e6e2a0475ecd96bcc (patch) | |
| tree | fe55b7048e9e7f1f587f465a1845aef9d3b7b731 /lib/libsamplerate/libsamplerate-0.2.2/docs/api.md | |
| parent | 3b240d1cd5c52caf189ca036a1a841f7e6d84ccd (diff) | |
| download | tangara-fw-60f767713227b5405b855e6e6e2a0475ecd96bcc.tar.gz | |
Do our own resampling
Diffstat (limited to 'lib/libsamplerate/libsamplerate-0.2.2/docs/api.md')
| -rwxr-xr-x | lib/libsamplerate/libsamplerate-0.2.2/docs/api.md | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/lib/libsamplerate/libsamplerate-0.2.2/docs/api.md b/lib/libsamplerate/libsamplerate-0.2.2/docs/api.md deleted file mode 100755 index f673e0b7..00000000 --- a/lib/libsamplerate/libsamplerate-0.2.2/docs/api.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -layout: default ---- - -# Applications Programming Interface - -The 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 - -```c -#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 capabilities of the library: - -- A [simple interface](api_simple.md) which can sample rate convert a single - block of samples (one or more channels) in one go. The simple API is less - capable than the full API. -- A [more fully featured interface](api_full.md) which allows time varying - sample rate conversion on streaming data (again one or more channels). -- A [callback interface](api_callback.md) which has the same functionality as - the interface above but allows the details of input and output to be - separated. The output is generated by call a read function and the library - calls a user supplied callback function to obtain its input. This interface is - particularly well suited to applications where the output sample rate is - varied with time. - -**NB :** All three access methods are able to process multi channel interleaved -data. - -The parts of the API which are common to all three interfaces are: - -- The [error reporting](api_misc.md#error-reporting) mechanisim. -- The available [converter](api_misc.md#converters) types. -- The [SRC_DATA](api_misc.md#src_data) struct. - -All three versions of the API are restricted to operating on buffers of ISO C -Standard **float** data. However, there are two [auxiliary functions](api_misc.md#auxiliary-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. |
