1/*
2Copyright 2018 Google Inc. All Rights Reserved.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS-IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#include "config/source_config.h"
18
19namespace vraudio {
20
21SourceGraphConfig StereoPanningConfig() {
22 SourceGraphConfig config;
23 config.configuration_name = "Stereo Panning";
24
25 config.ambisonic_order = 1;
26 config.enable_hrtf = false;
27 config.enable_direct_rendering = true;
28
29 return config;
30}
31
32SourceGraphConfig BinauralLowQualityConfig() {
33 SourceGraphConfig config;
34 config.configuration_name = "Binaural Low Quality";
35
36 config.ambisonic_order = 1;
37 config.enable_hrtf = true;
38 config.enable_direct_rendering = true;
39
40 return config;
41}
42
43SourceGraphConfig BinauralMediumQualityConfig() {
44 SourceGraphConfig config;
45 config.configuration_name = "Binaural Medium Quality";
46
47 config.ambisonic_order = 2;
48 config.enable_hrtf = true;
49 config.enable_direct_rendering = true;
50
51 return config;
52}
53
54SourceGraphConfig BinauralHighQualityConfig() {
55 SourceGraphConfig config;
56 config.configuration_name = "Binaural High Quality";
57
58 config.ambisonic_order = 3;
59 config.enable_hrtf = true;
60 config.enable_direct_rendering = true;
61
62 return config;
63}
64
65SourceGraphConfig RoomEffectsOnlyConfig() {
66 SourceGraphConfig config;
67 config.configuration_name = "Room Effects Only";
68
69 config.ambisonic_order = 1;
70 config.enable_hrtf = false;
71 config.enable_direct_rendering = false;
72
73 return config;
74}
75
76} // namespace vraudio
77

source code of qtmultimedia/src/3rdparty/resonance-audio/resonance_audio/config/source_config.cc