spandsp
0.0.6
private/time_scale.h
1
/*
2
* SpanDSP - a series of DSP components for telephony
3
*
4
* private/time_scale.h - Time scaling for linear speech data
5
*
6
* Written by Steve Underwood <steveu@coppice.org>
7
*
8
* Copyright (C) 2004 Steve Underwood
9
*
10
* All rights reserved.
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 2.1,
14
* as published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public
22
* License along with this program; if not, write to the Free Software
23
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
*/
25
26
#if !defined(_SPANDSP_PRIVATE_TIME_SCALE_H_)
27
#define _SPANDSP_PRIVATE_TIME_SCALE_H_
28
29
#define TIME_SCALE_MAX_SAMPLE_RATE 48000
30
#define TIME_SCALE_MIN_PITCH 60
31
#define TIME_SCALE_MAX_PITCH 250
32
#define TIME_SCALE_BUF_LEN (2*TIME_SCALE_MAX_SAMPLE_RATE/TIME_SCALE_MIN_PITCH)
33
34
/*! Audio time scaling descriptor. */
35
struct
time_scale_state_s
36
{
37
int
sample_rate;
38
int
min_pitch;
39
int
max_pitch;
40
int
buf_len;
41
float
playout_rate;
42
double
rcomp;
43
double
rate_nudge;
44
int
fill;
45
int
lcp;
46
int16_t buf[TIME_SCALE_BUF_LEN];
47
};
48
49
#endif
50
/*- End of file ------------------------------------------------------------*/
time_scale_state_s
Definition
private/time_scale.h:36
src
spandsp
private
time_scale.h
Generated by
1.14.0