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

Reading samples directly at runtime (port to STM32) #74

Open
Tronix286 opened this issue Sep 17, 2022 · 1 comment
Open

Reading samples directly at runtime (port to STM32) #74

Tronix286 opened this issue Sep 17, 2022 · 1 comment

Comments

@Tronix286
Copy link

Given:
STM32 micro with ~384Kb-512Kb RAM;
SD card connected to STM32 with fast SDIO 6-wire interface running at 24MHz clock;
FatFS, so files at SD-card can operate fopen() fclose() fseek() etc...

In your opinion, is it possible to read SF2 samples not into the main memory, but directly in pieces of the required size from a file (stream) at the runtime of sound rendering? Or into a small buffer?
Is it difficult to implement?
Thanks in advance.

@yishengjiang99
Copy link

I don’t think you want to do any file io ops in real time.. see #4 in this article https://atastypixel.com/four-common-mistakes-in-audio-development/

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

No branches or pull requests

2 participants