Sound handles and sound hashes are now typed: SoundHandle and SoundHash
instead of raw integers.
This prevents from erroneously passing a sound handle as a sound hash,
for example. This is a breaking API change but, in practice, shouldn't
be much of a problem, since these objects were always meant as
identifiers (to be taken from some API calls and put into others).
SoundProps.handle renamed to SoundProps.handles (because it's a Set)
and also disallowed modifying it from outside the package.
All fields of SoundProps marked final. This is a breaking change
but unlikely to have effect (as most users hopefully don't assign
to these fields).
Type of Change
[ ] โจ New feature (non-breaking change which adds functionality)
[ ] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[x] โ Breaking change (fix or feature that would cause existing functionality to change)
Description
SoundHandle
andSoundHash
instead of raw integers. This prevents from erroneously passing a sound handle as a sound hash, for example. This is a breaking API change but, in practice, shouldn't be much of a problem, since these objects were always meant as identifiers (to be taken from some API calls and put into others).SoundProps.handle
renamed toSoundProps.handles
(because it's a Set) and also disallowed modifying it from outside the package.SoundProps
markedfinal
. This is a breaking change but unlikely to have effect (as most users hopefully don't assign to these fields).Type of Change