[0] | 1 | //stream.h: |
---|
| 2 | |
---|
[704] | 3 | /* |
---|
| 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 |
---|
| 5 | * |
---|
| 6 | * This file is part of RoarAudio, |
---|
| 7 | * a cross-platform sound system for both, home and professional use. |
---|
| 8 | * See README for details. |
---|
| 9 | * |
---|
| 10 | * This file is free software; you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU Lesser General Public License version 3 |
---|
| 12 | * as published by the Free Software Foundation. |
---|
| 13 | * |
---|
| 14 | * RoarAudio is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU Lesser General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU Lesser General Public License |
---|
| 20 | * along with this software; see the file COPYING. If not, write to |
---|
[3517] | 21 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 22 | * Boston, MA 02110-1301, USA. |
---|
[704] | 23 | * |
---|
| 24 | * NOTE: Even though this file is LGPLed it (may) include GPLed files |
---|
| 25 | * so the license of this file is/may therefore downgraded to GPL. |
---|
| 26 | * See HACKING for details. |
---|
| 27 | */ |
---|
| 28 | |
---|
[0] | 29 | #ifndef _ROARAUDIO_STREAM_H_ |
---|
| 30 | #define _ROARAUDIO_STREAM_H_ |
---|
| 31 | |
---|
| 32 | #define ROAR_DIR_DEFAULT ROAR_DIR_PLAY |
---|
| 33 | |
---|
[1803] | 34 | #define ROAR_DIR_PLAY 1 |
---|
| 35 | #define ROAR_DIR_RECORD 2 |
---|
| 36 | #define ROAR_DIR_MONITOR 3 |
---|
| 37 | #define ROAR_DIR_FILTER 4 |
---|
[0] | 38 | |
---|
[1803] | 39 | #define ROAR_DIR_OUTPUT 5 |
---|
[0] | 40 | |
---|
[1803] | 41 | #define ROAR_DIR_MIXING 6 |
---|
[0] | 42 | //#define ROAR_DIR_INTERNAL 7 |
---|
| 43 | |
---|
[1803] | 44 | #define ROAR_DIR_META 8 |
---|
| 45 | #define ROAR_DIR_BIDIR 9 |
---|
| 46 | |
---|
| 47 | #define ROAR_DIR_THRU 10 |
---|
| 48 | |
---|
[1806] | 49 | #define ROAR_DIR_BRIDGE 11 |
---|
| 50 | |
---|
[2708] | 51 | // MIDI: |
---|
[1806] | 52 | #define ROAR_DIR_MIDI_IN 12 |
---|
| 53 | #define ROAR_DIR_MIDI_OUT 13 |
---|
[1803] | 54 | |
---|
[2708] | 55 | // Light Control: |
---|
[1803] | 56 | #define ROAR_DIR_LIGHT_IN 14 |
---|
| 57 | #define ROAR_DIR_LIGHT_OUT 15 |
---|
| 58 | |
---|
[2708] | 59 | // Raw Data: |
---|
[2231] | 60 | #define ROAR_DIR_RAW_IN 16 |
---|
| 61 | #define ROAR_DIR_RAW_OUT 17 |
---|
| 62 | |
---|
[2708] | 63 | // Complex (multi-content container): |
---|
[2681] | 64 | #define ROAR_DIR_COMPLEX_IN 18 |
---|
| 65 | #define ROAR_DIR_COMPLEX_OUT 19 |
---|
| 66 | |
---|
[2708] | 67 | // Radio Data and Transmitter Control System: |
---|
| 68 | #define ROAR_DIR_RDTCS_IN 20 |
---|
| 69 | #define ROAR_DIR_RDTCS_OUT 21 |
---|
| 70 | |
---|
| 71 | // Max DIR +1: |
---|
| 72 | #define ROAR_DIR_DIRIDS 22 |
---|
[567] | 73 | |
---|
[0] | 74 | |
---|
| 75 | #define ROAR_CARE_NOPOS 0 |
---|
| 76 | #define ROAR_CARE_POS 1 |
---|
| 77 | |
---|
| 78 | #define ROAR_STREAM(a) ((struct roar_stream*)(a)) |
---|
| 79 | |
---|
| 80 | #define ROAR_STREAMS_MAX 64 |
---|
| 81 | |
---|
| 82 | struct roar_stream { |
---|
| 83 | int id; |
---|
| 84 | |
---|
| 85 | int fh; |
---|
| 86 | int dir; |
---|
| 87 | int care_pos; |
---|
| 88 | |
---|
| 89 | uint32_t pos; |
---|
[3642] | 90 | uint32_t pos_rel_id; // TODO: why is this not int? |
---|
[0] | 91 | |
---|
| 92 | struct roar_audio_info info; |
---|
| 93 | |
---|
[1804] | 94 | /* |
---|
[0] | 95 | int datalen; |
---|
| 96 | char * database; |
---|
| 97 | int offset; |
---|
| 98 | char * dataoff; |
---|
[1804] | 99 | */ |
---|
[0] | 100 | }; |
---|
| 101 | |
---|
| 102 | #endif |
---|
| 103 | |
---|
| 104 | //ll |
---|