SAF
Loading...
Searching...
No Matches
ambi_roomsim_internal.c
Go to the documentation of this file.
1/*
2 * Copyright 2020 Leo McCormack
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 * PERFORMANCE OF THIS SOFTWARE.
15 */
16
25
26#include "ambi_roomsim.h"
28
29const float ambi_roomsim_default_abs_wall[6] = { 0.341055000f, 0.431295000f, 0.351295000f, 0.344335000f, 0.401775000f, 0.482095000f};
30
31const float ambi_roomsim_default_room_dims[3] = { 9.1f, 8.0f, 3.0f };
32
34
36 {5.2f, 1.5f, 1.4f}, {2.1f, 1.0f, 1.3f}, {3.1f, 5.0f, 2.3f}, {7.1f, 2.0f, 1.4f},
37 {4.2f, 1.5f, 1.8f}, {3.1f, 1.0f, 1.2f}, {4.1f, 5.0f, 2.3f}, {6.1f, 2.0f, 1.4f},
38 {3.2f, 1.5f, 2.2f}, {4.1f, 1.0f, 1.1f}, {5.1f, 5.0f, 2.3f}, {5.1f, 2.0f, 1.4f},
39 {2.2f, 1.5f, 2.6f}, {5.1f, 1.0f, 1.0f}, {6.1f, 5.0f, 2.3f}, {4.1f, 2.0f, 1.4f}
40};
41
43
45 {5.2f, 3.5f, 1.4f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f},
46 {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f},
47 {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f},
48 {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}
49};
A simple shoebox room Ambisonic encoder.
const float ambi_roomsim_default_room_dims[3]
Default room dimensions.
const float ambi_roomsim_defaultReceiverPositions[ROOM_SIM_MAX_NUM_RECEIVERS][3]
Default receiver positions.
#define ROOM_SIM_MAX_NUM_RECEIVERS
Maximum supported number of receivers for the room sim example.
const int ambi_roomsim_defaultNumReceivers
Default number of receivers in the simulation.
const int ambi_roomsim_defaultNumSources
Default number of sources in the simulation.
const float ambi_roomsim_defaultSourcePositions[ROOM_SIM_MAX_NUM_SOURCES][3]
Default source positions.
const float ambi_roomsim_default_abs_wall[6]
Default wall absorption coefficients.
#define ROOM_SIM_MAX_NUM_SOURCES
Maximum supported number of sources for the room sim example.
A simple shoebox room Ambisonic encoder.