1 | /* |
---|---|
2 | Copyright 2018 Google Inc. All Rights Reserved. |
3 | |
4 | Licensed under the Apache License, Version 2.0 (the "License"); |
5 | you may not use this file except in compliance with the License. |
6 | You may obtain a copy of the License at |
7 | |
8 | http://www.apache.org/licenses/LICENSE-2.0 |
9 | |
10 | Unless required by applicable law or agreed to in writing, software |
11 | distributed under the License is distributed on an "AS-IS" BASIS, |
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | See the License for the specific language governing permissions and |
14 | limitations under the License. |
15 | */ |
16 | |
17 | #include "config/source_config.h" |
18 | |
19 | namespace vraudio { |
20 | |
21 | SourceGraphConfig 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 | |
32 | SourceGraphConfig 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 | |
43 | SourceGraphConfig 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 | |
54 | SourceGraphConfig 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 | |
65 | SourceGraphConfig 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 |