sandbox: sdl: Support waiting for audio to complete
authorSimon Glass <sjg@chromium.org>
Mon, 3 Feb 2020 14:36:10 +0000 (07:36 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commitac7b73020150d5703d21870b09c9591092e01d68
treeaf0acca5cdb1e959a0c787e7fb64a487ed1d1c8d
parent5f736f8eca06c8c5e4f18750355ff01338141ae5
sandbox: sdl: Support waiting for audio to complete

At present when audio stops, any in-progress output is cut off. Fix this
by waiting for output to finish.

Also use booleans for the boolean variables.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/sdl.c