Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AudioInfo.StreamDecorator feature #5

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

quasilyte
Copy link
Owner

This is a breaking change: OGG will no longer be wrapped in an InfiniteLoop by default. Use StreamDecorator=LoopOGG to get the old behavior.

As for WAVs, it's now possible to disable the in-memory approach this library has (use NopDecorator).
This can be handy for games with tons of WAVs (hundreds or thousands). It's still recommended to keep all SFX in-memory for smaller games and at least keep the most frequent sounds for large games.

This new StreamDecorator feature will be essential to the upkoming custom audio loaders feature.
It also makes it possible to use custom decorators like your own infinite loop implementation, etc.

This is a breaking change: OGG will no longer be wrapped
in an InfiniteLoop by default. Use StreamDecorator=LoopOGG
to get the old behavior.

As for WAVs, it's now possible to disable the in-memory
approach this library has (use NopDecorator).
This can be handy for games with tons of WAVs (hundreds or thousands).
It's still recommended to keep all SFX in-memory for smaller
games and at least keep the most frequent sounds for large games.

This new StreamDecorator feature will be essential to the
upkoming custom audio loaders feature.
It also makes it possible to use custom decorators like
your own infinite loop implementation, etc.
@quasilyte quasilyte merged commit 7b8992f into master Oct 28, 2023
2 checks passed
@quasilyte quasilyte deleted the quasilyte/stream_decorators branch October 28, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant