source: roaraudio/doc/new-cmds @ 4091:a8fd464d7f34

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

set some values and a lot types

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