Skip to content

refactor: piebiten internal changes#167

Merged
elgopher merged 7 commits intomasterfrom
piebiten-refactor
Jul 22, 2025
Merged

refactor: piebiten internal changes#167
elgopher merged 7 commits intomasterfrom
piebiten-refactor

Conversation

@elgopher
Copy link
Owner

@elgopher elgopher commented Jul 22, 2025

Refactor piebiten internals

@elgopher elgopher self-assigned this Jul 22, 2025
@elgopher elgopher force-pushed the piebiten-refactor branch 3 times, most recently from 1eec07a to f501695 Compare July 22, 2025 21:17
@elgopher elgopher changed the title refactor: move internal audio source code to a separate package refactor: piebiten internal changes Jul 22, 2025
@elgopher elgopher force-pushed the piebiten-refactor branch 2 times, most recently from 712c7c9 to 5771637 Compare July 22, 2025 22:42
elgopher added 7 commits July 23, 2025 00:45
Using a buffered channel could lead to a situation when a game will schedule audio in the past.
Pi works correctly with both SingleThread=true and SingleThread=false.

However, to ensure that no future changes introduce concurrency bugs, it's better to default to SingleThread=false. This setting enforces proper synchronization in Pi, for example in the audio player.
coroutine.go is not a proper name and it was a typo.
To avoid confusion with *Sample rate, which is max 48000.
@elgopher elgopher force-pushed the piebiten-refactor branch from 5771637 to 9257035 Compare July 22, 2025 22:46
@elgopher elgopher merged commit 1ffbc09 into master Jul 22, 2025
1 check passed
@elgopher elgopher deleted the piebiten-refactor branch July 22, 2025 22:49
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.

1 participant