Asterisk - The Open Source Telephony Project GIT-master-f36a736
hrirs_configuration.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2016, Frank Haase, Dennis Guse
5 *
6 * Frank Haase <fra.haase@gmail.com>
7 * Dennis Guse <dennis.guse@alumni.tu-berlin.de>
8 *
9 * See http://www.asterisk.org for more information about
10 * the Asterisk project. Please do not directly contact
11 * any of the maintainers of this project for assistance;
12 * the project provides a web site, mailing lists and IRC
13 * channels for your use.
14 *
15 * This program is free software, distributed under the terms of
16 * the GNU General Public License Version 2. See the LICENSE file
17 * at the top of the source tree.
18 */
19
20/*! \file
21 *
22 * \brief Multi-party software binaural channel mixing (header)
23 *
24 * \author Frank Haase <fra.haase@googlemail.com>
25 * \author Dennis Guse <dennis.guse@alumni.tu-berlin.de>
26 *
27 * \ingroup bridges
28 */
29
30#ifndef _ASTERISK_HRIRS_CONFIGURATION_H
31#define _ASTERISK_HRIRS_CONFIGURATION_H
32
33#include "hrirs.h"
34
35/*! The size of possible positions in the virtual enviroment build with the help
36 * of binaural audio processing.
37 */
38#define POSITION_SIZE 181
39
40#if POSITION_SIZE != HRIRS_IMPULSE_SIZE
41#error "The conference is designed for 181 individual places at the moment. If you want to change this please alter the positions array first."
42#endif
43
44/*! The offset for the left channel audio channel. */
45#define HRIRS_CHANNEL_LEFT 0
46/*! The offset for the right channel audio channel. */
47#define HRIRS_CHANNEL_RIGHT 1
48
49/*! The ast_binaural_positions array contains a specific plan to order conference
50 * participants in the virtual enviroment.
51 */
52static unsigned int ast_binaural_positions[POSITION_SIZE] = {
53 90, 80, 100, 70, 110, 60, 120, 50, 130, 40, 140, 20, 160, 0, 180, 85, 95, 75, 105, 65, 115,
54 55, 125, 45, 135, 30, 150, 10, 170, 87, 93, 82, 98, 77, 103, 72, 108, 67, 113, 62, 118, 57,
55 123, 52, 128, 47, 133, 42, 138, 35, 145, 25, 155, 15, 165, 5, 175, 88, 92, 86, 83, 97, 81,
56 99, 78, 102, 76, 104, 73, 94, 107, 71, 109, 68, 112, 66, 114, 63, 117, 61, 119, 58, 122, 56,
57 124, 53, 127, 51, 129, 48, 132, 46, 134, 43, 137, 41, 139, 37, 143, 32, 148, 27, 153, 22,
58 158, 17, 163, 12, 168, 7, 96, 173, 2, 178, 89, 91, 84, 79, 101, 74, 106, 69, 111, 64, 116,
59 59, 121, 54, 126, 49, 131, 44, 136, 38, 142, 36, 144, 33, 147, 31, 149, 28, 152, 26, 154,
60 23, 157, 21, 159, 162, 16, 164, 13, 167, 11, 169, 8, 172, 6, 174, 3, 177, 1, 179, 39, 141,
61 34, 146, 29, 151, 24, 156, 19, 161, 14, 166, 9, 171, 4, 18, 176 };
62
63#endif /* _ASTERISK_HRIRS_CONFIGURATION_H */
Multi-party software binaural channel HRIRS.
static unsigned int ast_binaural_positions[POSITION_SIZE]
#define POSITION_SIZE