source: roaraudio/doc/new-cmds @ 4259:7d8810bc1ec1

Last change on this file since 4259:7d8810bc1ec1 was 4259:7d8810bc1ec1, checked in by phi, 14 years ago

added ID for LTM

File size: 6.7 KB
Line 
1#($Revision$)
2!SECTION: Commands
3+DEVCTL = 33
4 +:version (uint8)
5 +:type (uint8)
6 +:vendor (uint8)
7 +VENDOR_ROARAUDIO = 0
8 +VENDOR_BASICDEV  = 1
9 +:subtype (uint8)
10 +:flags (uint8)
11 +:ot (uint8)
12 +:(id) (uint16) #(if not UNIID or SID)
13 +:data... (vardata)
14+CAPS = 34
15 +:version (uint8)
16 +:type (uint8)
17 +:flags (uint16)
18 +CT_CAPS      = 0
19 +::data... (dataarray)
20 +:::captype (TODO)
21 +:::... (TODO)
22 +CT_STANDARDS = 1
23 +::data... (dataarray)
24 +:::stdvendor (uint8)
25 +STDV_ROARAUDIO = 0
26 +STDV_PROTO     = 1
27 +STDV_RFC       = 2
28 +:::stdversion (uint8)
29 +:::standard (uint16)
30+WAIT = 35
31 +:version (TODO)
32 +:flags (TODO)
33 :(TODO)
34+NOTIFY = 36
35 +=structof(WAIT)
36+SEEK = 37
37 +:version (TODO)
38 +:flags (TODO)
39 +:destination possition (TODO)
40 +:destination possition whence (TODO)
41 +:hint pos (TODO)
42 +:hint whence (TODO)
43 +:hint quality (TODO)
44 +:seek at (TODO)
45 +:seek to (TODO)
46 +:seek whence (TODO)
47 +SF_CONT_WHILE_SEEK = 0x01
48 +SF_CONT_ON_ERROR   = 0x02
49 +SF_HINT            = 0x04
50 +SF_SEEK            = 0x08
51 +HQ_BAD       = 0
52 +HQ_BAD_NB    = 1 #(bad, not before this possition)
53 +HQ_NEAR      = 2
54 +HQ_NEAR_NB   = 3 #(Near, not before this possition)
55 +HQ_GOOD      = 4
56 +HQ_GOOD_NB   = 5 #(good, not before this possition)
57 +HQ_EXACT     = HQ_EXACT_NB #(ID 6 is skiped here)
58 +HQ_EXACT_NB  = 7
59 +WHENCE_BEGIN = 0
60 +WHENCE_CUR   = 1
61 +WHENCE_END   = 2
62+CLIENTCTL = 38
63 +:version (uint8)
64 +:subcmd (uint8)
65 +:flags (uint16)
66 +:data (vardata)
67 +CC_HASHTABLE = PARA_HASHTABLE
68 +CC_WININFO   = PARA_WININFO
69 +CC_PROPTABLE = PARA_PROPTABLE
70+LOOKUP = 39
71 +:version (uint8)
72 +:flags (uint8)
73 +:extflags (uint8)
74 +:ot (uint8)
75 +:ht (uint32) #(hash type)
76 +:hash... (vardata)
77+CONCTL = 40
78 +:version (uint8)
79 +:flags (uint8)
80 +:session (uint8)
81 +:type (uint8)
82 +:stdvendor (uint8)
83 +:stdversion (uint8)
84 +:standard (uint16)
85 +CCT_NONE       = 0 #(This is the same like a NOOP-Command)
86 +CCT_CRYPTMSG   = 1 #(This request contains zero or more crypto packages according to given standard)
87 +CCT_OPENSESS   = 2 #(This opens a crypto session)
88 +:hash (uint32)
89 +:comp (uint16)
90 +COMPT_NONE  = 0
91 +COMPT_ZLIB  = 1
92 +COMPT_GZIP  = 2
93 +COMPT_BZIP2 = 3
94 +:complevel (uint8)
95 +:compflags (uint8)
96 +:data... (dataarray)
97 +CCT_CLOSESESS  = 3 #(This closes a opend cryto session)
98 +:hashlen (uint16)
99 +:hash (dataarray(:hashlen))
100 +:data... (dataarray)
101 +CCT_SESSDATA   = 4 #(This is some kind of data used in the session)
102 +:data... (dataarray)
103*SERVER_INFO
104 +IT_SERVER   = 1
105  :(TODO)
106 +IT_COUNTERS = 2
107  +:version (uint8)
108  +:reserved (uint24)
109  +:data... (dataarray)
110  +::type (uint8)
111  +::flags (uint8)
112  +::reserved (uint16)
113  +::counter (uint32)
114  +CF_CURRENT = 0x01 #(Current value if set, sum if unset)
115  +CF_OTTYPE  = 0x02 #(Type is a OT_* type if set, or other if unset)
116 +IT_LISTEN   = 3
117  +:version (uint8)
118  +:reserved (uint24)
119  +:listensocks... (dataarray)
120  +::id (uint16)
121  +::flags (uint8)
122  +::socktype (uint8)
123  +::proto (uint16)
124  +::byteorder (uint16)
125  +::dir (uint32)
126  +::auinfo (packed-audioinfo) #(4*4*8 = 128bit)
127  +::addrlen (uint16)
128  +::addr (padded-string(:addrlen))
129  +LF_HAVEDIR = 0x01
130  +LF_HAVEAI  = 0x02
131*[GS]ET_STREAM_PARA
132 *PARA_INFO
133  +STREAMSTATE_ERROR    = 5 #(Stream is in some error condition, parent client should close or kick it)
134  +STREAMSTATE_NEEDSEEK = 6 #(like Error but stream can become usable again if you do a seek)
135 +PARA_HASHTABLE  = 6   #(GTN, UUID, ...)
136  +:htsettertype (uint32)
137  +:htsettersize (uint16)
138  +:htsetterdata (vardata)
139  +:hashtable... (dataarray)
140  +::httype (uint32)
141  +::htsize (uint16)
142  +::htfunction (uint16)
143  +::htdata (vardata)
144  +HT_NONE       = 0
145  +HT_MD5        = 1
146  +HT_SHA1       = 2
147  +HT_RIPEMD160  = 3
148  +HT_MD2        = 5
149  +HT_TIGER      = 6
150  +HT_HAVAL      = 7
151  +HT_SHA256     = 8
152  +HT_SHA384     = 9
153  +HT_SHA512     = 10
154  +HT_SHA224     = 11
155  +HT_MD4        = 301
156  +HT_CRC32      = 302 #(ISO 3309, ITU-T V.42, IEEE 802.3)
157  +HT_RFC1510    = 303 #(HT_CRC32 as modified by RFC 1510)
158  +HT_RFC2440    = 304 #(poly=0x1864CFBL, init=0xB704CEL, OpenPGP)
159  +HT_WHIRLPOOL  = 305
160  +HT_UUID       = 70000
161#(GTN is the Global Track Number as used by for example the RoarAudio PlayList Daemon (rpld))
162#(It is a creator-runtime-unique number to identify the object.)
163  +HT_GTN8       = 70001
164  +HT_GTN16      = 70002
165  +HT_GTN32      = 70004 #("Short Global Track Number")
166  +HT_GTN64      = 70008 #("Long  Global Track Number")
167  +HT_CLIENTID   = 71000 + OT_CLIENT   = 71001
168  +HT_STREAMID   = 71000 + OT_STREAM   = 71002
169  +HT_SOURCEID   = 71000 + OT_SOURCE   = 71003
170  +HT_SAMPLEID   = 71000 + OT_SAMPLE   = 71004
171  +HT_MIXERID    = 71000 + OT_MIXER    = 71005
172  +HT_BRIDGEID   = 71000 + OT_BRIDGE   = 71006
173  +HT_LISTENID   = 71000 + OT_LISTEN   = 71007
174  +HT_ACTIONID   = 71000 + OT_ACTION   = 71008
175  +HT_MSGQUEUEID = 71000 + OT_MSGQUEUE = 71009
176  +HT_MSGBUSID   = 71000 + OT_MSGBUS   = 71010
177#(Next are article and book numers. They may be ued with HF_DISK and HF_WORK)
178  +HT_GTIN8      = 72001
179  +HT_GTIN13     = 72002
180  +HT_ISBN10     = 72003
181  +HT_ISBN13     = HT_GTIN13 #(ISBN-13 and GTIN/EAN-13 are the same)
182  +HF_NONE       =  0 #(This entry does not have anything to do with the object...)
183  +HF_OBJECT     =  1 #(This is an entry for exacltly this object)
184  +HF_PARENT     =  2 #(This is the parent object)
185  +HF_LOGIC      =  3 #(This is a logic group of this object)
186  +HF_PERMANENT  =  4 #(This can be used to acces exactly this object with a premanent address)
187  +HF_DEVICE     =  5 #(The device this is on or the device itself if this is a device)
188  +HF_DISK       =  6 #(The disk this is on, if this is a disk the same as HF_DEVICE)
189  +HF_SONG       =  7 #(This identifys the Song. This may for example be used with Tantalos)
190  +HF_APP        =  8 #(The application, device or other source generating this object)
191  +HF_FILE       =  9 #(The source file for this object)
192  +HT_ARTIST     = 10 #(This identifies any kind of artist/composer/interpret, to be used with Tantalos)
193  +HT_WORK       = 11 #(This identifies any kind of work/album/compilation, to be used with Tantalos)
194 +PARA_WININFO   = 7
195  +:wsystype (uint8)
196  +:socktype (uint8)
197  +:display (uint8)
198  +:screen (uint8)
199  +:addrlen (uint16)
200  +:addr (padded-string(:addrlen))
201  +:wins (dataarray)
202  +::window (uint32)
203 +PARA_PROPTABLE = 8
204  :(TODO)
205 +PARA_LTM       = 9
206*KICK,...
207 +OT_OUTPUT   =  5
208 +OT_MIXER    =  6
209 +OT_BRIDGE   =  7
210 +OT_LISTEN   =  8
211 +OT_ACTION   =  9
212 +OT_MSGQUEUE = 10 #(Message queue, message is gone as soon as one client took it)
213 +OT_MSGBUS   = 11 #(Message bus, message is gone as soon as all listening clients got it)
214*ATTACH
215 *ATTACH_SOURCE
216  :(TODO)
217 *ATTACH_OUTPUT
218  :(TODO)
219 +ATTACH_MIXER    = 4
220  :(TODO)
221 +ATTACH_BRIDGE   = 5
222  :(TODO)
223*SET_VOL
224 +SET_VOL_MS      = 3
225 +SET_VOL_UNMAPED = 4 #(like roarctls mono/stereo...)
226!SECTIONEND
227!SECTION: Codecs
228+AUTLAW  = NEEDS_CONST
229+MUUTLAW = NEEDS_CONST
230!SECTIONEND
Note: See TracBrowser for help on using the repository browser.