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 hang when recognize_song feed with less than 8ms sound #31

Merged
merged 2 commits into from
Aug 29, 2022

Conversation

Dronablo
Copy link
Contributor

If we try to pass less than 128 samples of audio to recognize_song(), it will stuck forever.
This PR changes this behavior: it will return empty result immediately, assuming that it is impossible to find something recognizable in such a little audio sample.

@dotX12
Copy link
Collaborator

dotX12 commented Aug 29, 2022

@Dronablo, Thanks for your input! I accept :)
Now I will make a new release.

@dotX12 dotX12 merged commit 3f3c7b9 into shazamio:master Aug 29, 2022
@dotX12
Copy link
Collaborator

dotX12 commented Aug 29, 2022

@Dronablo
Copy link
Contributor Author

Well, I have little bit more to contribute ;). Code will be ready in a copy of days.

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.

None yet

2 participants