view src/AOSystem.cpp @ 10:d51a735106c2

All classes have basic functionality and support the full ao api. Test driver is now lists available sound drivers. TODO - AOSystem needs to be made into a singleton. - Need more fully fleshed out tests. - Need Doxygen - Need to consider more abstraction rather than the 1-1 mapping of api calls to methods.
author Eris Caffee <discordia@eldalin.com>
date Thu, 26 Mar 2015 16:17:33 -0500
parents
children
line source
1 #include "aopp.hpp"
3 using namespace AOPP;
5 AOSystem::AOSystem() {
6 ao_initialize();
7 }
9 AOSystem::~AOSystem() {
10 ao_shutdown();
11 }
13 AOInfo ** AOSystem::driver_info_list( int *driver_count ) {
14 *driver_count = 0;
15 ao_info **list = NULL;
17 list = ao_driver_info_list( driver_count );
19 return static_cast<AOInfo **>(list);
20 }
22 int AOSystem::default_driver_id( void ) {
23 return ao_default_driver_id();
24 }
26 int AOSystem::is_big_endian( void ) {
27 return ao_is_big_endian();
28 }
30 int AOSystem::append_global_option( const char *key, const char *value ) {
31 return append_global_option( key, value );
32 }