Add a method to play a source with a SharedFuture buffer
commit561001332acc9976757b87196882ee8507b25b22
authorChris Robinson <chris.kcat@gmail.com>
Tue, 24 Oct 2017 01:11:36 +0000 (23 18:11 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Tue, 24 Oct 2017 01:11:36 +0000 (23 18:11 -0700)
tree5a2121da0d2b4354ccc79040aad44115f141afcd
parent6954a680b35a358a09b99b073283b314fb1f7a32
Add a method to play a source with a SharedFuture buffer

This allows a source to wait on an async buffer load and start playing once
it's loaded. Control is given back to the app right away, and subsequent calls
to Context::update will check the status of any source's future buffer and
begin playing them when ready. This allows applications to asynchronously load
a buffer and tell a source to play it, without blocking on waiting for it to
finish loading and without having to manage delayed playing of sources.
include/AL/alure2.h
src/context.cpp
src/context.h
src/source.cpp
src/source.h
src/sourcegroup.cpp