Skip to content

Commit

Permalink
FMOD: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 12, 2011
1 parent 42e15e9 commit eae5323
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions doomsday/plugins/fmod/include/fmod_util.h
Expand Up @@ -33,15 +33,17 @@
# define strnicmp strncasecmp
#endif

class FMODVector : public FMOD_VECTOR
{
#ifdef WIN32
# define strnicmp _strnicmp
#endif

class FMODVector : public FMOD_VECTOR {
public:
FMODVector(float _x = 0, float _y = 0, float _z = 0) {
x = _x;
y = _y;
z = _z;
}

void set(const float* values) {
x = values[0];
y = values[1];
Expand Down
3 changes: 2 additions & 1 deletion doomsday/plugins/fmod/src/fmod_music.cpp
Expand Up @@ -50,7 +50,8 @@ static FMOD_RESULT F_CALLBACK musicCallback(FMOD_CHANNEL* chanPtr,
void* /*commanddata1*/,
void* /*commanddata2*/)
{
assert(reinterpret_cast<FMOD::Channel*>(chanPtr) == music);
if(reinterpret_cast<FMOD::Channel*>(chanPtr) != music)
return FMOD_OK; // Safety check.

switch(type)
{
Expand Down

0 comments on commit eae5323

Please sign in to comment.