diwic / alsa-rs

Thin but safe ALSA wrappers for Rust
Apache License 2.0
139 stars 66 forks source link

add unsafe_clone for PCM #115

Closed bbarker closed 10 months ago

diwic commented 10 months ago

Hi and thanks for the PR,

It does not look correct though. What problems would this solve that you can't solve by putting PCM into an Arc<Mutex<PCM>>?

bbarker commented 10 months ago

Yes, you are right - I actually had Arc<Mutex<...>> at a higher level, but forgot that I'd added a [#derive(Clone)] in between there and PCM. Thanks!