1<!-- LE Audio Offload Codec Capability Schema -->
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3  <xs:element name="leAudioOffloadSetting">
4    <xs:complexType>
5      <xs:element ref="scenarioList" minOccurs="1" maxOccurs="1"/>
6      <xs:element ref="configurationList" minOccurs="1" maxOccurs="1"/>
7      <xs:element ref="codecConfigurationList" minOccurs="1" maxOccurs="1"/>
8      <xs:element ref="strategyConfigurationList" minOccurs="1" maxOccurs="1"/>
9    </xs:complexType>
10  </xs:element>
11  <xs:element name="scenarioList">
12    <xs:complexType>
13      <xs:element ref="scenario" minOccurs="1" maxOccurs="unbounded"/>
14    </xs:complexType>
15  </xs:element>
16  <xs:element name="configurationList">
17    <xs:complexType>
18      <xs:element ref="configuration" minOccurs="1" maxOccurs="unbounded"/>
19    </xs:complexType>
20  </xs:element>
21  <xs:element name="codecConfigurationList">
22    <xs:complexType>
23      <xs:element ref="codecConfiguration" minOccurs="1" maxOccurs="unbounded"/>
24    </xs:complexType>
25  </xs:element>
26  <xs:element name="strategyConfigurationList">
27    <xs:complexType>
28      <xs:element ref="strategyConfiguration" minOccurs="1" maxOccurs="unbounded"/>
29    </xs:complexType>
30  </xs:element>
31  <xs:element name="scenario">
32    <xs:complexType>
33      <xs:attribute name="encode" type="xs:string"/>
34      <xs:attribute name="decode" type="xs:string"/>
35      <xs:attribute name="broadcast" type="xs:string"/>
36    </xs:complexType>
37  </xs:element>
38  <xs:element name="configuration">
39    <xs:complexType>
40      <xs:attribute name="name" type="xs:string"/>
41      <xs:attribute name="codecConfiguration" type="xs:string"/>
42      <xs:attribute name="strategyConfiguration" type="xs:string"/>
43    </xs:complexType>
44  </xs:element>
45  <xs:element name="codecConfiguration">
46    <xs:complexType>
47      <xs:attribute name="name" type="xs:string"/>
48      <xs:attribute name="codec" type="codecType"/>
49      <xs:attribute name="pcmBitDepth" type="xs:unsignedByte"/>
50      <xs:attribute name="samplingFrequency" type="xs:int"/>
51      <xs:attribute name="frameDurationUs" type="xs:int"/>
52      <xs:attribute name="octetsPerCodecFrame" type="xs:int"/>
53      <xs:attribute name="codecFrameBlocksPerSdu" type="xs:unsignedByte"/>
54    </xs:complexType>
55  </xs:element>
56  <xs:element name="strategyConfiguration">
57    <xs:complexType>
58      <xs:attribute name="name" type="xs:string"/>
59      <xs:attribute name="audioLocation" type="audioLocation"/>
60      <xs:attribute name="connectedDevice" type="xs:unsignedByte"/>
61      <xs:attribute name="channelCount" type="xs:unsignedByte"/>
62    </xs:complexType>
63  </xs:element>
64  <xs:simpleType name="audioLocation">
65    <xs:restriction base="xs:string">
66      <xs:enumeration value="MONO"/>
67      <xs:enumeration value="STEREO"/>
68    </xs:restriction>
69  </xs:simpleType>
70  <xs:simpleType name="codecType">
71    <xs:restriction base="xs:string">
72      <xs:enumeration value="LC3"/>
73      <xs:enumeration value="APTX_ADAPTIVE_LE"/>
74      <xs:enumeration value="APTX_ADAPTIVE_LEX"/>
75    </xs:restriction>
76  </xs:simpleType>
77</xs:schema>
78