asterisk/bridges/bridge_softmix/include/hrirs_configuration.h

64 lines
2.5 KiB
C
Raw Permalink Normal View History

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