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
|
|
@ -236,9 +236,10 @@ impl DeviceHandles {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Device {
|
||||
name: String,
|
||||
handles: Mutex<DeviceHandles>,
|
||||
handles: Arc<Mutex<DeviceHandles>>,
|
||||
}
|
||||
|
||||
impl Device {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue