Rev | Line | |
---|
[0] | 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 | |
---|
| 19 | #define ROAR_CARE_NOPOS 0 |
---|
| 20 | #define ROAR_CARE_POS 1 |
---|
| 21 | |
---|
| 22 | #define ROAR_STREAM(a) ((struct roar_stream*)(a)) |
---|
| 23 | |
---|
| 24 | #define ROAR_STREAMS_MAX 64 |
---|
| 25 | |
---|
| 26 | struct roar_stream { |
---|
| 27 | int id; |
---|
| 28 | |
---|
| 29 | int fh; |
---|
| 30 | int dir; |
---|
| 31 | int care_pos; |
---|
| 32 | |
---|
| 33 | uint32_t pos; |
---|
| 34 | uint32_t pos_rel_id; |
---|
| 35 | |
---|
| 36 | struct roar_audio_info info; |
---|
| 37 | |
---|
| 38 | int datalen; |
---|
| 39 | char * database; |
---|
| 40 | int offset; |
---|
| 41 | char * dataoff; |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | #endif |
---|
| 45 | |
---|
| 46 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.