1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20:41 +00:00

Some Windows-help to cmake/FindAudiere.cmake + non-important changes.

This commit is contained in:
Nicolay Korslund 2010-09-10 10:45:16 +02:00
parent 93ef530c93
commit f55362cbdc
3 changed files with 23 additions and 5 deletions

View File

@ -24,7 +24,9 @@
FIND_PATH(AUDIERE_INCLUDE_DIR audiere.h
HINTS
PATH_SUFFIXES include
PATHS
$ENV{AUDIERE_DIR}
~/Library/Frameworks
/Library/Frameworks
/usr/local
@ -40,6 +42,7 @@ FIND_LIBRARY(AUDIERE_LIBRARY
HINTS
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
PATHS
$ENV{AUDIERE_DIR}
~/Library/Frameworks
/Library/Frameworks
/usr/local

View File

@ -6,6 +6,11 @@
entire engine depends on these headers.
*/
/*
#include <iostream>
using namespace std;
*/
namespace ESM
{
void NPC::load(ESMReader &esm, const std::string& id)
@ -154,4 +159,17 @@ namespace ESM
// Skip rest of record
esm.skipRecord();
}
void Sound::load(ESMReader &esm)
{
sound = esm.getHNString("FNAM");
esm.getHNT(data, "DATA", 3);
/*
cout << "vol=" << (int)data.volume
<< " min=" << (int)data.minRange
<< " max=" << (int)data.maxRange
<< endl;
*/
}
}

View File

@ -15,11 +15,8 @@ struct Sound
SOUNstruct data;
std::string sound;
void load(ESMReader &esm)
{
sound = esm.getHNString("FNAM");
esm.getHNT(data, "DATA", 3);
}
// Body moved to load_impl.cpp
void load(ESMReader &esm);
};
}
#endif