BluezQt

mediatypes.h
1 /*
2  * BluezQt - Asynchronous BlueZ wrapper library
3  *
4  * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #pragma once
10 
11 namespace BluezQt
12 {
13 /** Assigned number of codec that the endpoint/transport supports.
14  Currently limited to most common codecs. Further codecs reserved. */
15 enum class AudioCodec {
16  Invalid = 0x0000,
17  Sbc = 0x0001,
18  // Mp3 = 0x0002,
19  Aac = 0x0004,
20  // Atrac = 0x0008,
21  // AptX = 0x0010,
22  // AptXLl = 0x0020,
23  // AptXHd = 0x0040,
24  // FastStream = 0x0080,
25  // Ldac = 0x0100,
26 };
27 
28 /** Assigned number of sample rate that the endpoint/transport supports.
29  Currently limited to most common rates. Further rates reserved. */
30 enum class AudioSampleRate {
31  Invalid = 0x0000,
32  // Rate8000 = 0x0001,
33  // Rate11025 = 0x0002,
34  // Rate12000 = 0x0004,
35  // Rate16000 = 0x0008,
36  // Rate22050 = 0x0010,
37  // Rate24000 = 0x0020,
38  // Rate32000 = 0x0040,
39  Rate44100 = 0x0080,
40  Rate48000 = 0x0100,
41  // Rate64000 = 0x0200,
42  // Rate88200 = 0x0400,
43  // Rate96000 = 0x0800
44 };
45 
46 struct AudioConfiguration {
47  AudioCodec codec = AudioCodec::Invalid;
48  AudioSampleRate sampleRate = AudioSampleRate::Invalid;
49 };
50 
51 } // namespace BluezQt
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.