Clone for device (#830)

* Clone for Device and Alsa Device

* fix cloning around PCM

* add Clone for oboe Device

* add Clone for ASIO Device
This commit is contained in:
Brandon Elam Barker 2024-02-05 22:48:11 -05:00 • committed by GitHub
parent 4706396ca3
commit bbb58ab767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 4 deletions

View file

@ -55,6 +55,7 @@ macro_rules! impl_platform_host {
/// The `Device` implementation associated with the platform's dynamically dispatched
/// [`Host`] type.
#[derive(Clone)]
pub struct Device(DeviceInner);
/// The `Devices` iterator associated with the platform's dynamically dispatched [`Host`]
@ -89,6 +90,7 @@ macro_rules! impl_platform_host {
}
/// Contains a platform specific [`Device`] implementation.
#[derive(Clone)]
pub enum DeviceInner {
$(
$(#[cfg($feat)])?