Mercurial > hg > audiodb
diff 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 |
line wrap: on
line diff
--- a/audioDB.cpp Sat Jun 14 17:12:04 2008 +0000 +++ b/audioDB.cpp Sat Jun 14 17:13:26 2008 +0000 @@ -37,6 +37,9 @@ ws_status(dbName,(char*)hostport); else status(dbName); + + else if(O2_ACTION(COM_SAMPLE)) + sample(dbName); else if(O2_ACTION(COM_L2NORM)) l2norm(dbName); @@ -210,6 +213,12 @@ return 0; } + if(args_info.SAMPLE_given) { + command = COM_SAMPLE; + dbName = args_info.database_arg; + return 0; + } + if(args_info.DUMP_given){ command=COM_DUMP; dbName=args_info.database_arg;