-
Notifications
You must be signed in to change notification settings - Fork 5
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 WAV file reader. #56
Conversation
73eb174
to
1a2bf6c
Compare
Memory usage change @ 1a2bf6c
Click for full report table
Click for full report CSV
|
8705889
to
ea93fb0
Compare
Memory usage change @ ea93fb0
Click for full report table
Click for full report CSV
|
e89040c
to
612a506
Compare
Memory usage change @ 612a506
Click for full report table
Click for full report CSV
|
612a506
to
ed1d15b
Compare
Memory usage change @ ed1d15b
Click for full report table
Click for full report CSV
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks clear and smooth!
Could you add a brief example in the Usage
section of docs/README.md and APIs description in the docs/api.md?
38a0d93
to
bd6a329
Compare
Memory usage change @ bd6a329
Click for full report table
Click for full report CSV
|
Signed-off-by: iabdalkader <[email protected]>
- Switch to WavReader. - Fix the handling of multi-channels. - Simplify the example code. Signed-off-by: iabdalkader <[email protected]>
bd6a329
to
21c3525
Compare
Memory usage change @ 21c3525
Click for full report table
Click for full report CSV
|
Sure, but it should be documented before the next release, as the API may change slightly in the following PR. |
This PR adds a WAV file reader as it's about to be used in more examples, so it made sense to move the code to a common class. The WavReader handles parsing the header, reading samples and rewinding the data for audio loops. The playback example is also updated to use the WavReader and I fixed a few issues in the code, including the handling of 2 channels.