tesselode / kira

Library for expressive game audio.
https://crates.io/crates/kira
Apache License 2.0
837 stars 42 forks source link

StaticSoundHandle is not Clone-able #25

Closed nobbele closed 2 years ago

nobbele commented 2 years ago

I misunderstood the use of this, I don't need it to be Clone-able myself but it could still be made Clone-able I think

tesselode commented 2 years ago

If cloning a sound handle is a common enough use case, I could wrap the producer in a Mutex to make the handle cloneable. For now, you can wrap the sound handle in a Mutex yourself if you want shared ownership.