-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
bug or feature by design when handle sdl callback? #1518
Comments
Indeed, you're correct. This appears to be a bug. |
The logic in this case isn't entirely flawless. Consider a scenario where your whisper.cpp/examples/common-sdl.cpp Lines 152 to 165 in e2f0eba
|
Thank you for spotting this! Could you check #1523 - I think it should fix the issues |
file: examples/common-sdl.cpp, line: 156
memcpy(&m_audio[0], &stream[n0], (n_samples - n0) * sizeof(float));
should change to
memcpy(&m_audio[0], &stream[n0 * sizeof(float)], (n_samples - n0) * sizeof(float));
https://github.com/ggerganov/whisper.cpp/blob/e2f0eba2d4dbe4ded5625cbd8a9c17e13f2482f6/examples/common-sdl.cpp#L156C1-L156C80
The text was updated successfully, but these errors were encountered: