File: rem_dtmf.h

package info (click to toggle)
rem 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 540 kB
  • sloc: ansic: 4,618; makefile: 142; python: 19; sh: 1
file content (21 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * @file rem_dtmf.h  DTMF Decoder
 *
 * Copyright (C) 2010 Creytiv.com
 */

struct dtmf_dec;

/**
 * Defines the DTMF decode handler
 *
 * @param digit Decoded DTMF digit
 * @param arg   Handler argument
 */
typedef void (dtmf_dec_h)(char digit, void *arg);


int  dtmf_dec_alloc(struct dtmf_dec **decp, unsigned srate, unsigned ch,
		    dtmf_dec_h *dech, void *arg);
void dtmf_dec_reset(struct dtmf_dec *dec, unsigned srate, unsigned ch);
void dtmf_dec_probe(struct dtmf_dec *dec, const int16_t *sampv, size_t sampc);