Shows the basic usage of OALplus by playing a soundCopyright 2008-2014 Matus Chochlik. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <chrono>
#include <thread>
int main(int argc, char** argv)
{
listener.
Orientation(0.0f, 0.0f,-1.0f, 0.0f, 1.0f, 0.0f);
source.Buffer(buffer);
source.Position(0.0f, 0.0f,-1.0f);
source.Play();
std::chrono::seconds duration(2);
std::this_thread::sleep_for(duration);
return 0;
}