Skip to content

Tags: ebitengine/oto

Tags

v3.5.0-alpha

Toggle v3.5.0-alpha's commit message
all: v3.5.0-alpha released

v3.4.0

Toggle v3.4.0's commit message
all: v3.4.0 released

v3.4.0-alpha.11

Toggle v3.4.0-alpha.11's commit message
.github/workflows: skip tests for Windows

Updates #259

v2.4.3

Toggle v2.4.3's commit message
all: deprecate v2

Updates #268

v1.0.2

Toggle v1.0.2's commit message
all: deprecate v1

v3.4.0-alpha.10

Toggle v3.4.0-alpha.10's commit message
oto: stop suspending and resuming when the machine is slept on macOS

This logic was introduced for hajimehoshi/ebiten#1259, but now this
seems no longer needed. Rather, this logic caused unexpected resuming.

Updates hajimehoshi/ebiten#3297

v3.4.0-alpha.9

Toggle v3.4.0-alpha.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
internal/mux: optimize memory re-use by using one buffer pool for all…

… players. (#265)

This way different player instances can re-use memory buffers.
This helps keeping the allocation rate low and reduces gc.

Sharing is fine under the assumption that after a short while all buffers are
at least as large as we currently need them to be. If we get a buffer from the pool
that is smaller than the current required buffer size, we'll alloc a bigger buffer
and return that one into the pool. Next time, we'll probably get a buffer of the
correct size.

We now also share the p.buf buffer between players. If a player is stopped or has reached eof,
the buffer is put back into the pool.

In total, this change helps to reduce the allocation rate (and in turn garbage pressure) when
playing a lot of short lived sound effects, and it does not hinder long running playback.

v3.4.0-alpha.8

Toggle v3.4.0-alpha.8's commit message
all: update dependencies

v3.4.0-alpha.7

Toggle v3.4.0-alpha.7's commit message
oto: deprecate Player.Close

Closes #262

v3.4.0-alpha.6

Toggle v3.4.0-alpha.6's commit message
internal/mux: do not put back an old buffer

Theoretically, it is possible to put an old-sized buffer to the pool.

Closes #258