OALplus (0.52.0) a C++ wrapper for OpenAL

oalplus/001_devices.cpp

Shows the basic usage of OALplus by printing names of audio devicesCopyright 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 <oalplus/al.hpp>
#include <oalplus/all.hpp>
#include <iostream>
int main(void)
{
std::cout << "Devices:" << std::endl;
for(auto r=oalplus::Device::Specifiers(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
//
std::cout << "Capture devices:" << std::endl;
for(auto r=oalplus::CaptureDevice::Specifiers(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
//
return 0;
}

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).