| 1 |
#ifndef IAUDIORESAMPLER_H |
| 2 |
#define IAUDIORESAMPLER_H |
| 3 |
|
| 4 |
// |
| 5 |
// Interface class for the resampling routine |
| 6 |
// |
| 7 |
|
| 8 |
#include "avm_default.h" |
| 9 |
|
| 10 |
AVM_BEGIN_NAMESPACE; |
| 11 |
|
| 12 |
// using templates for char, short, int sized samples |
| 13 |
class IAudioResampler |
| 14 |
{ |
| 15 |
public: |
| 16 |
virtual ~IAudioResampler() {} |
| 17 |
virtual uint_t getBitsPerSample() const = 0; |
| 18 |
virtual void resample(void* out, const void* in, size_t out_count, size_t in_count) = 0; |
| 19 |
}; |
| 20 |
|
| 21 |
AVM_END_NAMESPACE; |
| 22 |
|
| 23 |
#endif /* IAUDIORESAMPLER_H */ |