Mercurial > hg > audiodb
comparison audioDB.cpp @ 266:4ffa05f25a00 sampling
Add initial sampling of database distances. Zillions of FIXME comments
everywhere.
author | mas01cr |
---|---|
date | Sat, 14 Jun 2008 17:13:26 +0000 |
parents | 210b2f661b88 |
children | 40a93d5d462c |
comparison
equal
deleted
inserted
replaced
265:235762857a70 | 266:4ffa05f25a00 |
---|---|
35 else if(O2_ACTION(COM_STATUS)) | 35 else if(O2_ACTION(COM_STATUS)) |
36 if(isClient) | 36 if(isClient) |
37 ws_status(dbName,(char*)hostport); | 37 ws_status(dbName,(char*)hostport); |
38 else | 38 else |
39 status(dbName); | 39 status(dbName); |
40 | |
41 else if(O2_ACTION(COM_SAMPLE)) | |
42 sample(dbName); | |
40 | 43 |
41 else if(O2_ACTION(COM_L2NORM)) | 44 else if(O2_ACTION(COM_L2NORM)) |
42 l2norm(dbName); | 45 l2norm(dbName); |
43 | 46 |
44 else if(O2_ACTION(COM_POWER)) | 47 else if(O2_ACTION(COM_POWER)) |
208 command=COM_STATUS; | 211 command=COM_STATUS; |
209 dbName=args_info.database_arg; | 212 dbName=args_info.database_arg; |
210 return 0; | 213 return 0; |
211 } | 214 } |
212 | 215 |
216 if(args_info.SAMPLE_given) { | |
217 command = COM_SAMPLE; | |
218 dbName = args_info.database_arg; | |
219 return 0; | |
220 } | |
221 | |
213 if(args_info.DUMP_given){ | 222 if(args_info.DUMP_given){ |
214 command=COM_DUMP; | 223 command=COM_DUMP; |
215 dbName=args_info.database_arg; | 224 dbName=args_info.database_arg; |
216 output = args_info.output_arg; | 225 output = args_info.output_arg; |
217 return 0; | 226 return 0; |