diff --git a/photon.mm b/photon.mm
index 45069e4..541e63e 100644
--- a/photon.mm
+++ b/photon.mm
@@ -30,6 +30,10 @@
+
+
+
+
@@ -68,7 +72,7 @@
-
+
@@ -81,9 +85,8 @@
-
-
+
diff --git a/src/audio/SampleResourceManager.cpp b/src/audio/SampleResourceManager.cpp
index ca1278e..425abaf 100644
--- a/src/audio/SampleResourceManager.cpp
+++ b/src/audio/SampleResourceManager.cpp
@@ -5,7 +5,7 @@
// James Turk (jpt2433@rit.edu)
//
// Version:
-// $Id: SampleResourceManager.cpp,v 1.1 2005/07/05 06:44:56 cozman Exp $
+// $Id: SampleResourceManager.cpp,v 1.2 2005/07/06 02:10:07 cozman Exp $
#include "audio/SampleResourceManager.hpp"
#include "audio/AudioCore.hpp"
@@ -29,7 +29,7 @@ void SampleResourceManager::getAudioData(const std::string& name,
void SampleResourceManager::loadResourceData(SampleResource &res,
const ResourceDescriptor& desc)
{
- //util::FileBuffer buf(path.path);
+ util::FileBuffer buf(desc.path);
// OpenAL variables to load into.
ALenum format;
ALsizei size;
@@ -37,13 +37,14 @@ void SampleResourceManager::loadResourceData(SampleResource &res,
ALsizei freq;
ALboolean loop;
- ///std::vector data = buf.getData();
+ std::vector filedata = buf.getData();
+ size = filedata.size();
alGenBuffers(1, &res.bufferID); // create OpenAL buffer
AudioCore::throwOpenALError("alGenBuffers");
- alutLoadWAVFile((ALbyte*)desc.path.c_str(), &format, &data, &size, &freq, &loop);
+ alutLoadWAVMemory((ALbyte*)&filedata[0], &format, &data, &size, &freq, &loop);
AudioCore::throwOpenALError("alutLoadWAVFile");
diff --git a/test/AudioCore_test.cpp b/test/Audio_test.cpp
similarity index 96%
rename from test/AudioCore_test.cpp
rename to test/Audio_test.cpp
index c174bc4..3991660 100644
--- a/test/AudioCore_test.cpp
+++ b/test/Audio_test.cpp
@@ -5,7 +5,7 @@
// James Turk (jpt2433@rit.edu)
//
// Version:
-// $Id: AudioCore_test.cpp,v 1.3 2005/07/05 06:44:56 cozman Exp $
+// $Id: Audio_test.cpp,v 1.1 2005/07/06 02:10:07 cozman Exp $
#include "photon.hpp"
using namespace photon;
diff --git a/test/filesys_test.cpp b/test/filesys_test.cpp
index 134ab4e..46b49d5 100644
--- a/test/filesys_test.cpp
+++ b/test/filesys_test.cpp
@@ -5,9 +5,10 @@
// James Turk (jpt2433@rit.edu)
//
// Version:
-// $Id: filesys_test.cpp,v 1.1 2005/05/15 02:50:07 cozman Exp $
+// $Id: filesys_test.cpp,v 1.2 2005/07/06 02:10:07 cozman Exp $
#include "photon.hpp"
+#include
using namespace std;
using namespace photon;