| 1 | /* |
| 2 | * iaxclient: a cross-platform IAX softphone library |
| 3 | * |
| 4 | * Copyrights: |
| 5 | * Copyright (C) 2003-2006, Horizon Wimba, Inc. |
| 6 | * Copyright (C) 2007, Wimba, Inc. |
| 7 | * |
| 8 | * Contributors: |
| 9 | * Steve Kann <[email protected]> |
| 10 | * |
| 11 | * This program is free software, distributed under the terms of |
| 12 | * the GNU Lesser (Library) General Public License. |
| 13 | */ |
| 14 | |
| 15 | #ifndef _AUDIO_ENCODE_H |
| 16 | #define _AUDIO_ENCODE_H |
| 17 | |
| 18 | /* Minimum dB possible in the iaxclient world. This level |
| 19 | * is intended to represent silence. |
| 20 | */ |
| 21 | #define AUDIO_ENCODE_SILENCE_DB -99.0f |
| 22 | |
| 23 | struct iaxc_call; |
| 24 | struct iax_event; |
| 25 | |
| 26 | int audio_send_encoded_audio(struct iaxc_call * most_recent_answer, int callNo, |
| 27 | void * data, int iEncodeType, int samples); |
| 28 | |
| 29 | int audio_decode_audio(struct iaxc_call * p, void * out, void * data, int len, |
| 30 | int iEncodeType, int * samples); |
| 31 | |
| 32 | #endif |
| 33 |