/usr/include/libroutermanager/libfaxophone/isdn-convert.h is in libroutermanager-dev 1.8.14-2build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /**
* The libroutermanager project
* Copyright (c) 2012-2014 Jan-Michael Brummer
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* \file isdn-convert.h
* \brief audio conversation header
*/
#ifndef ISDN_CONVERT_H
#define ISDN_CONVERT_H
#include <string.h>
#include <math.h>
#include <libroutermanager/libfaxophone/faxophone.h>
// 16bit PCM, Mono, 8000 hz -> alaw
extern signed char linear16_2_law[65536];
// alaw -> 16bit PCM, Mono, 8000 hz
extern unsigned short law_2_linear16[256];
void create_table_buffer(void);
double get_line_level_in(struct capi_connection *connection);
double get_line_level_out(struct capi_connection *connection);
void convert_isdn_to_audio(struct capi_connection *connection, guchar *in_buf, guint in_buf_len, guchar *out_buf, guint *out_buf_len, short *rec_buf);
void convert_audio_to_isdn(struct capi_connection *connection, guchar *in_buf, guint in_buf_len, guchar *out_buf, guint *out_buf_len, short *rec_buf);
static inline guchar bit_inverse(guchar chr)
{
return ((chr >> 7) & 0x1) |
((chr >> 5) & 0x2) |
((chr >> 3) & 0x4) |
((chr >> 1) & 0x8) |
((chr << 1) & 0x10) |
((chr << 3) & 0x20) |
((chr << 5) & 0x40) |
((chr << 7) & 0x80);
}
#endif
|