src/OpenALSource.cpp

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * OpenAL Source Code
00003  */
00004 
00005 #include <AL/al.h>
00006 #include <AL/alut.h>
00007 #include "soundfile.h"
00008 #include "OpenALSource.h"
00009 
00010 OpenALSource::OpenALSource() {
00011   source = GenSource();
00012 }
00013 
00014 OpenALSource::~OpenALSource() {
00015   alDeleteSources(1, &source);
00016 }
00017 
00018 ALuint OpenALSource::GetSource() {
00019   return source;
00020 }

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7