alnitak / flutter_soloud

Flutter low-level audio plugin using SoLoud C++ library and FFI
MIT License
156 stars 15 forks source link

feat: Add functions to directly get and set pan #90

Closed the-byte-bender closed 3 weeks ago

the-byte-bender commented 3 weeks ago

Description

As of the time of writing, there is no getPan or setPan functions to directly set and get the pan value of a handle. However, soloud does provide such functions. The only way to set pan as of yet, is to provide a pan value to play(), or use the fadePan method, but that is not appropriate when you just need to instantly change pan, or when you need to just get the current value.

Requirements

Additional Context

We are making a game using this, and directly getting / setting pan is required for us, so we would appreciate it if this can be looked into. Thanks.

alnitak commented 3 weeks ago

@the-byte-bender sorry I forgot to write that this feature has been merged in main branch. Not yet on pub.dev