blob: 0d740f690a791c19b746b7f4485ee9cf77e13674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef LIBSOUNDFILE_H_Q97OEKGG
#define LIBSOUNDFILE_H_Q97OEKGG
#include "PCMConverter.h"
#include <sndfile.hh>
namespace uscxml {
class LibSoundFile : public PCMConverter {
public:
LibSoundFile(const std::string filename);
virtual ~LibSoundFile();
void seek(unsigned int pos);
int read(char* buffer, unsigned int size);
virtual void setOutFormat(const PCMFormat& format);
virtual PCMFormat getInFormat();
protected:
std::string _filename;
SndfileHandle _handle;
PCMFormat _format;
};
}
#endif /* end of include guard: LIBSOUNDFILE_H_Q97OEKGG */
|