tesselode / kira

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

Feature request: looping behaviour changes during playback #34

Closed viluon closed 1 year ago

viluon commented 1 year ago

Would it be feasible to implement changes to the looping behaviour in StreamingSoundHandle/StaticSoundHandle?

tesselode commented 1 year ago

I don't see why not. There's certainly room for more functionality related to looping. What's your use case?

viluon commented 1 year ago

I'm actually building a soundboard app with kira. I tried rodio and using sypmhonia/cpal/libpulse directly, but rodio doesn't support seeking and the low-level libraries are, well, too low-level. kira's API is a breath of fresh air, a high-level, easy-to-use interface that doesn't compromise on features. The static sound functionality lets me visualise the waveform using the same library that I use for streaming playback. https://user-images.githubusercontent.com/7235381/204112926-93e98e67-3e9c-4bbb-be89-b4468943da80.mp4

edit: the omnipresent tweening is also great for my use case!

tesselode commented 1 year ago

Implemented in Kira v0.8.