2005-05-15 02:50:07 +00:00
|
|
|
//This file is part of Photon (http://photon.sourceforge.net)
|
|
|
|
//Copyright (C) 2004-2005 James Turk
|
|
|
|
//
|
|
|
|
// Author:
|
|
|
|
// James Turk (jpt2433@rit.edu)
|
|
|
|
//
|
|
|
|
// Version:
|
2005-07-04 03:06:48 +00:00
|
|
|
// $Id: AudioCore_test.cpp,v 1.2 2005/07/04 03:06:48 cozman Exp $
|
2005-05-15 02:50:07 +00:00
|
|
|
|
|
|
|
#include "photon.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using namespace photon;
|
2005-07-04 03:06:48 +00:00
|
|
|
|
|
|
|
#ifdef PHOTON_USE_OPENAL
|
|
|
|
|
2005-05-15 02:50:07 +00:00
|
|
|
using namespace photon::audio;
|
|
|
|
|
|
|
|
class AudioTest : public Application
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
int main(const StrVec& args)
|
|
|
|
{
|
2005-07-04 03:06:48 +00:00
|
|
|
|
2005-05-15 02:50:07 +00:00
|
|
|
AudioCore& audio(AudioCore::getInstance());
|
|
|
|
std::cout << audio.getAudioDeviceName();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
ENTRYPOINT(AudioTest)
|
2005-07-04 03:06:48 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
std::cerr << "Photon compiled without OpenAL support.\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //PHOTON_USE_OPENAL
|