source: roaraudio/include/roaraudio/stream.h @ 567:caec85153110

Last change on this file since 567:caec85153110 was 567:caec85153110, checked in by phi, 16 years ago

added magic/meta dir "META"

File size: 701 bytes
Line 
1//stream.h:
2
3#ifndef _ROARAUDIO_STREAM_H_
4#define _ROARAUDIO_STREAM_H_
5
6#define ROAR_DIR_DEFAULT ROAR_DIR_PLAY
7
8#define ROAR_DIR_PLAY     1
9#define ROAR_DIR_RECORD   2
10#define ROAR_DIR_MONITOR  3
11#define ROAR_DIR_FILTER   4
12
13#define ROAR_DIR_OUTPUT   5
14
15//#define ROAR_DIR_MIXING   6
16//#define ROAR_DIR_INTERNAL 7
17
18#define ROAR_DIR_META     8
19
20
21#define ROAR_CARE_NOPOS  0
22#define ROAR_CARE_POS    1
23
24#define ROAR_STREAM(a) ((struct roar_stream*)(a))
25
26#define ROAR_STREAMS_MAX  64
27
28struct roar_stream {
29 int id;
30
31 int fh;
32 int dir;
33 int care_pos;
34
35 uint32_t pos;
36 uint32_t pos_rel_id;
37
38 struct roar_audio_info info;
39
40 int    datalen;
41 char * database;
42 int    offset;
43 char * dataoff;
44};
45
46#endif
47
48//ll
Note: See TracBrowser for help on using the repository browser.