projects
/
dcpomatic.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge master.
[dcpomatic.git]
/
src
/
lib
/
resampler.h
1
#include <boost/shared_ptr.hpp>
2
extern "C" {
3
#include <libswresample/swresample.h>
4
}
5
6
class AudioBuffers;
7
8
class Resampler
9
{
10
public:
11
Resampler (int, int, int);
12
~Resampler ();
13
14
boost::shared_ptr<const AudioBuffers> run (boost::shared_ptr<const AudioBuffers>);
15
16
private:
17
SwrContext* _swr_context;
18
int _in_rate;
19
int _out_rate;
20
int _channels;
21
};