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

Add AudioBufferDataFormat #1861

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ACrazyTown
Copy link
Contributor

@ACrazyTown ACrazyTown commented Nov 14, 2024

Currently it's not possible to determine what format AudioBuffer.data is stored in. This makes it difficult to figure out if a WAV file is stored in a 32bit int or 32bit float format for example.
This pull request adds a dataFormat enum that specifies the format of the audio data.

When parsing WAV files, it reads the AudioFormat data in the header.
When parsing OGG/Vorbis, the value is hardcoded to 1 (PCM) as lime decodes OGG files into 16bit PCM data.

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