#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <fcntl.h>
#include <time.h>
#include <limits.h>
#include "spandsp/telephony.h"
#include "spandsp/time_scale.h"
Functions | |
int | time_scale_rate (time_scale_t *s, float rate) |
Change the time scale rate. | |
int | time_scale_init (time_scale_t *s, float rate) |
Initialise a time scale context. | |
int | time_scale (time_scale_t *s, int16_t out[], int16_t in[], int len) |
Time scale a chunk of audio samples. |
int time_scale | ( | time_scale_t * | s, | |
int16_t | out[], | |||
int16_t | in[], | |||
int | len | |||
) |
Time scale a chunk of audio samples.
Time scale a chunk of audio samples.
s | The time sclae context. | |
out | The output audio sample buffer. | |
in | The input audio sample buffer. | |
len | The number of input samples. |
int time_scale_init | ( | time_scale_t * | s, | |
float | rate | |||
) |
Initialise a time scale context.
Initialise a time scale context. This must be called before the first use of the context, to initialise its contents.
s | The time scale context. | |
rate | The ratio between the output speed and the input speed. |
int time_scale_rate | ( | time_scale_t * | s, | |
float | rate | |||
) |
Change the time scale rate.
Change the time scale rate.
s | The time scale context. | |
rate | The ratio between the output speed and the input speed. |