Mercurial > hg > audiodb
comparison audioDB.cpp @ 675:c62041316a44
First implementation of separate query / instance hopsizes
Builds and passes tests. Bindings not yet adjusted, and of course there are
no existing tests of hopsize functionality anyway.
author | mas01cr |
---|---|
date | Fri, 05 Mar 2010 16:01:06 +0000 |
parents | a35ca2d5f238 |
children | b1723ae7675e |
comparison
equal
deleted
inserted
replaced
674:fb85aadab85d | 675:c62041316a44 |
---|---|
831 } | 831 } |
832 if(usingTimes) { | 832 if(usingTimes) { |
833 qspec.refine.flags |= ADB_REFINE_DURATION_RATIO; | 833 qspec.refine.flags |= ADB_REFINE_DURATION_RATIO; |
834 qspec.refine.duration_ratio = timesTol; | 834 qspec.refine.duration_ratio = timesTol; |
835 } | 835 } |
836 /* FIXME: not sure about this any more; maybe it belongs in | 836 |
837 query_id? Or maybe we just don't need a flag for it? */ | 837 qspec.refine.qhopsize = sequenceHop; |
838 qspec.refine.hopsize = sequenceHop; | 838 qspec.refine.ihopsize = sequenceHop; |
839 if(sequenceHop != 1) { | 839 if(sequenceHop != 1) { |
840 qspec.refine.flags |= ADB_REFINE_HOP_SIZE; | 840 qspec.refine.flags |= ADB_REFINE_HOP_SIZE; |
841 } | 841 } |
842 | 842 |
843 if(query_from_key) { | 843 if(query_from_key) { |