source: roaraudio/doc/new-cmds @ 4100:ee24e76266d6

Last change on this file since 4100:ee24e76266d6 was 4100:ee24e76266d6, checked in by phi, 14 years ago

new numbers

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