mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-01 20:14:06 -04:00
Waiting for PCM to finish before exiting
This commit is contained in:
@@ -421,6 +421,8 @@ int play_sample(struct ctx *ctx)
|
||||
}
|
||||
} while (!close && num_read > 0);
|
||||
|
||||
pcm_wait(ctx->pcm, -1);
|
||||
|
||||
free(buffer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user