Skip to content

Speed up loading of 24/32-bit wav files.#43

Open
prayerie wants to merge 2 commits into
NitrousTracker:newfrom
prayerie:patch-11
Open

Speed up loading of 24/32-bit wav files.#43
prayerie wants to merge 2 commits into
NitrousTracker:newfrom
prayerie:patch-11

Conversation

@prayerie
Copy link
Copy Markdown

@prayerie prayerie commented May 3, 2026

Reads the entire file into memory then does the byte skipping using memcpy, resulting in faster loading times for 24/32-bit samples.

Note: An additional temp buffer of audio data is required, so loading a large 24/32bit wav would be more likely to fail due to insufficient memory.

Note 2: audio_data_ is still up to 2x too large for 24/32-bit samples, however this PR doesn't address this :o)

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