Remove windows dependency, small timing fix

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@20 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
DJRobX 2007-11-05 20:03:11 +00:00
parent 6c8a306919
commit 4a186b80e2
2 changed files with 9 additions and 16 deletions

View File

@ -1,10 +1,6 @@
#include <math.h> #include <math.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "../libresample-0.1.3/include/libresample.h" #include "../libresample-0.1.3/include/libresample.h"
#include "snd_interp.h" #include "snd_interp.h"
// this was once borrowed from libmodplug, and was also used to generate the FIR coefficient // this was once borrowed from libmodplug, and was also used to generate the FIR coefficient
@ -265,8 +261,9 @@ public:
// wahoo, takes care of drifting // wahoo, takes care of drifting
if (samples.size() > 2) if (samples.size() > 2)
position+=1; position+=lrate+16383;
position += lrate; else
position+=lrate;
return ret; return ret;
} }
@ -334,10 +331,9 @@ public:
// wahoo, takes care of drifting // wahoo, takes care of drifting
if (samples.size() > 8) if (samples.size() > 8)
{ position+=lrate+16383;
position+=1; else
} position+=lrate;
position += lrate;
return ret; return ret;
} }
@ -401,8 +397,8 @@ public:
// wahoo, takes care of drifting // wahoo, takes care of drifting
if (samples.size() > 16) if (samples.size() > 16)
position+=1; position+=lrate+16383;
else
position+=lrate; position+=lrate;
return ret; return ret;
} }

View File

@ -1,9 +1,6 @@
#ifndef __SND_INTERP_H__ #ifndef __SND_INTERP_H__
#define __SND_INTERP_H__ #define __SND_INTERP_H__
#include <stdio.h>
#include <windows.h>
class foo_interpolate class foo_interpolate
{ {
public: public: