wip : improve makefile

This commit is contained in:
Georgi Gerganov
2022-10-05 20:41:35 +03:00
parent 74197ffc11
commit ce1fe95902
4 changed files with 66 additions and 23 deletions

View File

@ -238,7 +238,7 @@ int main(int argc, char ** argv) {
}
// process 3 seconds of new audio
while ((int) SDL_GetQueuedAudioSize(g_dev_id_in) < 3*WHISPER_SAMPLE_RATE*sizeof(float)) {
while (SDL_GetQueuedAudioSize(g_dev_id_in) < 3*WHISPER_SAMPLE_RATE*sizeof(float)) {
SDL_Delay(1);
}
const int n_samples_new = SDL_GetQueuedAudioSize(g_dev_id_in)/sizeof(float);