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

Fix wav saving #64

Closed
wants to merge 1 commit into from
Closed

Conversation

mattiascibien
Copy link

This PR fixes wav saving as the original code overwrites the initial bytes of audio. Also fixes #53 as some platform enforces correctness of wav files when playing them

Copy link

@LucasEGomes LucasEGomes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in Redmi Note 8 and worked.

@ghost
Copy link

ghost commented May 20, 2021

Tested on a couple Xiaomis and it's working

@Haarmees
Copy link

Nice fix! Do you think it would be an idea/possible to write 44 "filler" bytes (size of wavheader) to the filestream in the beginning and overwrite those in the end? This would avoid using a memorystream, which could potentially create a memory problem with longer recordings.

@mattiascibien
Copy link
Author

Nice fix! Do you think it would be an idea/possible to write 44 "filler" bytes (size of wavheader) to the filestream in the beginning and overwrite those in the end? This would avoid using a memorystream, which could potentially create a memory problem with longer recordings.

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.

play() not working on Xiaomi devices
4 participants