Debian Codegraph @

samples/qtvidcap/dsp.h

raw
1 #ifndef DSP_H
2 #define DSP_H
3
4 class dsp
5 {
6 public:
7 dsp();
8 ~dsp();
9
10 int open(int bits, int channels, int rate, const char* dev = "/dev/dsp");
11 int close();
12 int getBufSize() { return blocksize; }
13 int getSize();
14 int read(char* buffer, int size);
15 int synch();
16 private:
17 dsp(const dsp & );
18
19 int fd, blocksize;
20 char *buffer;
21 };
22
23 #endif // DSP_H