dm: sandbox: Update sound to use two buffers
authorSimon Glass <sjg@chromium.org>
Mon, 10 Dec 2018 17:37:35 +0000 (10:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commite625b68b04a400ba377ec0a5b958bde0bc6244ff
tree0487b80bb20eac7868be358bec6f5446a7f4af67
parente96fa6c91177d0aa81119d1d24cc0aa2dd663581
dm: sandbox: Update sound to use two buffers

At present we use a single buffer for sound which means we cannot be
playing one sound while queueing up the next. This wouldn't matter except
that a long sound (more than a second) has to be created as a single
buffer, thus using a lot of memory. To better mimic what real sound
drivers do, add support for double buffering in sandbox.

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