blob: cda7189348f2987858b346bf5aad79edc539883c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <boost/shared_ptr.hpp>
extern "C" {
#include <libswresample/swresample.h>
}
class AudioBuffers;
class Resampler
{
public:
Resampler (int, int, int);
~Resampler ();
boost::shared_ptr<const AudioBuffers> run (boost::shared_ptr<const AudioBuffers>);
private:
SwrContext* _swr_context;
int _in_rate;
int _out_rate;
int _channels;
};
|