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

@ -236,9 +236,10 @@ impl DeviceHandles {
}
}
#[derive(Clone)]
pub struct Device {
name: String,
handles: Mutex<DeviceHandles>,
handles: Arc<Mutex<DeviceHandles>>,
}
impl Device {