fixes windows compile error and some nuused param warnings

This was SVN commit r13217.
This commit is contained in:
stwf
2013-03-03 22:28:26 +00:00
parent 3bce7cafba
commit efd42ef490
4 changed files with 14 additions and 15 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ protected:
bool AddDataBuffer(char* data, long length);
void SetFormatAndFreq(int form, ALsizei freq);
ALsizei GetBufferCount();
ALuint GetBuffer();
ALuint* GetBufferPtr();
int GetBufferCount();
unsigned int GetBuffer();
unsigned int* GetBufferPtr();
};
#endif // CONFIG2_AUDIO
+3 -3
View File
@@ -117,7 +117,7 @@ CSoundData* CSoundData::SoundDataFromOgg(const VfsPath& itemPath)
return answer;
}
ALsizei CSoundData::GetBufferCount()
int CSoundData::GetBufferCount()
{
return 1;
}
@@ -147,12 +147,12 @@ bool CSoundData::DecrementCount()
return (m_RetentionCount <= 0);
}
ALuint CSoundData::GetBuffer()
unsigned int CSoundData::GetBuffer()
{
return m_ALBuffer;
}
ALuint* CSoundData::GetBufferPtr()
unsigned int* CSoundData::GetBufferPtr()
{
return &m_ALBuffer;
}
+4 -6
View File
@@ -22,7 +22,6 @@
#if CONFIG2_AUDIO
#include "lib/external_libraries/openal.h"
#include "lib/file/vfs/vfs_path.h"
#include "ps/CStr.h"
@@ -41,7 +40,6 @@ public:
static void ReleaseSoundData(CSoundData* theData);
CSoundData();
CSoundData(ALuint dataSource);
virtual ~CSoundData();
CSoundData* IncrementCount();
@@ -50,17 +48,17 @@ public:
virtual bool IsOneShot();
virtual ALuint GetBuffer();
virtual ALsizei GetBufferCount();
virtual unsigned int GetBuffer();
virtual int GetBufferCount();
virtual CStrW* GetFileName();
virtual void SetFileName(const Path& aName);
virtual ALuint* GetBufferPtr();
virtual unsigned int* GetBufferPtr();
protected:
static DataMap* sSoundData;
ALuint m_ALBuffer;
unsigned int m_ALBuffer;
int m_RetentionCount;
CStrW* m_FileName;
+4 -3
View File
@@ -56,10 +56,11 @@ void CSoundBase::ReleaseOpenAL()
void CSoundBase::Attach(CSoundData* itemData)
{
UNUSED2(itemData);
}
bool CSoundBase::CanAttach(CSoundData* itemData)
{
UNUSED2(itemData);
return false;
}
@@ -132,8 +133,8 @@ void CSoundBase::SetGain(ALfloat gain)
void CSoundBase::SetRollOff(ALfloat rolls)
{
if ( m_ALSource )
{
if ( m_ALSource )
{
CScopeLock lock(m_ItemMutex);
alSourcef(m_ALSource, AL_REFERENCE_DISTANCE, 70.0f);
AL_CHECK