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:
parent
4706396ca3
commit
bbb58ab767
5 changed files with 10 additions and 4 deletions
|
|
@ -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)])?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue