Android-cuttlefish cvd tool
audio_settings.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 The Android Open Source Project
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#pragma once
18
19#include <cstdint>
20#include <optional>
21
22#include "cuttlefish/host/libs/audio/channel_layout.h" // IWYU pragma: export
23
24namespace cuttlefish {
25
27 enum class Direction {
28 Playback,
29 Capture,
30 };
31
33 uint32_t min = 0;
34 uint32_t max = 100;
35 uint32_t step = 1;
36 };
37
38 uint8_t id = 0;
41 bool virtual_tuner = false;
42
43 bool has_mute_control = false;
44 bool has_duck_control = false;
46 std::optional<VolumeControl> master_volume_control;
47};
48
51 uint32_t sample_rate = 48000;
52};
53
54} // namespace cuttlefish
Definition: alloc_driver.h:21
AudioChannelsLayout
Definition: channel_layout.h:25
Definition: audio_settings.h:49
uint32_t sample_rate
Definition: audio_settings.h:51
AudioChannelsLayout channels_layout
Definition: audio_settings.h:50
Definition: audio_settings.h:32
uint32_t step
Definition: audio_settings.h:35
uint32_t max
Definition: audio_settings.h:34
uint32_t min
Definition: audio_settings.h:33
Definition: audio_settings.h:26
bool has_duck_control
Definition: audio_settings.h:44
AudioChannelsLayout channels_layout
Definition: audio_settings.h:39
bool has_fade_balance_control
Definition: audio_settings.h:45
Direction
Definition: audio_settings.h:27
Direction direction
Definition: audio_settings.h:40
bool virtual_tuner
Definition: audio_settings.h:41
std::optional< VolumeControl > master_volume_control
Definition: audio_settings.h:46
bool has_mute_control
Definition: audio_settings.h:43