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

WAV Player: Reconfigure to use 8-bit memory buffer, halving memory usage #156

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

CookiePLMonster
Copy link
Contributor

The WAV Player configures the memory side of the DMA transfer to halfword (16 bits), even though the end result of the WAV decoding is always within the u8 range. This PR modifies the transfer config to byte (8 bits), as STM32WB55 specifically allows to mismatch memory and peripheral data sizes.

This effectively reduces the memory usage of the app by approximately 1/3 (16bit buffer + 8bit buffer -> 8bit buffer + 8bit buffer).

Willy-JL added a commit to Next-Flip/Momentum-Apps that referenced this pull request Jul 3, 2024
xMasterX/all-the-plugins#156
Co-authored-by: CookiePLMonster <CookiePLMonster@users.noreply.github.com>
@xMasterX
Copy link
Owner

xMasterX commented Jul 4, 2024

Thanks!

@xMasterX xMasterX merged commit 820e6e0 into xMasterX:dev Jul 4, 2024
@CookiePLMonster CookiePLMonster deleted the wav-player-mem-usage branch July 4, 2024 03:59
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.

2 participants