Remove windows dependency, small timing fix
This commit is contained in:
parent
d7f7f2b1c0
commit
e11009c271
|
@ -1,10 +1,6 @@
|
|||
#include <math.h>
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "../libresample-0.1.3/include/libresample.h"
|
||||
|
||||
#include "snd_interp.h"
|
||||
|
||||
// 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
|
||||
if (samples.size() > 2)
|
||||
position+=1;
|
||||
position += lrate;
|
||||
position+=lrate+16383;
|
||||
else
|
||||
position+=lrate;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -334,10 +331,9 @@ public:
|
|||
|
||||
// wahoo, takes care of drifting
|
||||
if (samples.size() > 8)
|
||||
{
|
||||
position+=1;
|
||||
}
|
||||
position += lrate;
|
||||
position+=lrate+16383;
|
||||
else
|
||||
position+=lrate;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -401,8 +397,8 @@ public:
|
|||
|
||||
// wahoo, takes care of drifting
|
||||
if (samples.size() > 16)
|
||||
position+=1;
|
||||
|
||||
position+=lrate+16383;
|
||||
else
|
||||
position+=lrate;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#ifndef __SND_INTERP_H__
|
||||
#define __SND_INTERP_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
|
||||
class foo_interpolate
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue