]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | #[doc = "*Required features: `\"Phone_Media_Devices\"`*"] |
5e7ed085 FG |
2 | #[repr(transparent)] |
3 | pub struct AudioRoutingEndpoint(pub i32); | |
4 | impl AudioRoutingEndpoint { | |
5 | pub const Default: Self = Self(0i32); | |
6 | pub const Earpiece: Self = Self(1i32); | |
7 | pub const Speakerphone: Self = Self(2i32); | |
8 | pub const Bluetooth: Self = Self(3i32); | |
9 | pub const WiredHeadset: Self = Self(4i32); | |
10 | pub const WiredHeadsetSpeakerOnly: Self = Self(5i32); | |
11 | pub const BluetoothWithNoiseAndEchoCancellation: Self = Self(6i32); | |
12 | pub const BluetoothPreferred: Self = Self(7i32); | |
13 | } | |
14 | impl ::core::marker::Copy for AudioRoutingEndpoint {} | |
15 | impl ::core::clone::Clone for AudioRoutingEndpoint { | |
16 | fn clone(&self) -> Self { | |
17 | *self | |
18 | } | |
19 | } | |
20 | pub type AudioRoutingManager = *mut ::core::ffi::c_void; | |
04454e1e | 21 | #[doc = "*Required features: `\"Phone_Media_Devices\"`*"] |
5e7ed085 FG |
22 | #[repr(transparent)] |
23 | pub struct AvailableAudioRoutingEndpoints(pub u32); | |
24 | impl AvailableAudioRoutingEndpoints { | |
25 | pub const None: Self = Self(0u32); | |
26 | pub const Earpiece: Self = Self(1u32); | |
27 | pub const Speakerphone: Self = Self(2u32); | |
28 | pub const Bluetooth: Self = Self(4u32); | |
29 | } | |
30 | impl ::core::marker::Copy for AvailableAudioRoutingEndpoints {} | |
31 | impl ::core::clone::Clone for AvailableAudioRoutingEndpoints { | |
32 | fn clone(&self) -> Self { | |
33 | *self | |
34 | } | |
35 | } |