File: dsp.h

package info (click to toggle)
dvr 3.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 896 kB
  • ctags: 394
  • sloc: cpp: 3,192; makefile: 134; sh: 100; yacc: 39
file content (32 lines) | stat: -rw-r--r-- 608 bytes parent folder | download
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
28
29
30
31
32
/* 
    kwintv, Video4Linux compatible KDE application

    Copyright (C) 1998 Moritz Wenk (wenk@mathematik.uni-kl.de)
*/
#ifndef dsp_h
#define dsp_h

//#define WAVE_FORMAT_PCM                 (0x0001)
//#define WAVE_FORMAT_ALAW                (0x0006)
//#define WAVE_FORMAT_MULAW               (0x0007)


class dsp
{
public:
  dsp( const char * dev = "/dev/dsp" );
  ~dsp();

    int open (int bits, int channels, int rate);
  inline int getBufSize() { return blocksize; }
  char * readBuf();
  int getSize();
  int close();
private:
  dsp( const dsp & );
  
  int fd, blocksize;
  char *buffer;
};

#endif