Mercurial > hg > audiodb
comparison audioDB.cpp @ 695:01e25f938b63
simplify sample code slightly
Now there are two bits that are exactly the same as audiodb_query_spec().
They should be merged with the query code.
author | mas01cr |
---|---|
date | Thu, 22 Apr 2010 21:03:59 +0000 |
parents | b1723ae7675e |
children | bb9478d5b57e |
comparison
equal
deleted
inserted
replaced
694:55aa1919d735 | 695:01e25f938b63 |
---|---|
1117 if (prop > 0) { | 1117 if (prop > 0) { |
1118 count++; | 1118 count++; |
1119 } | 1119 } |
1120 total += prop; | 1120 total += prop; |
1121 } | 1121 } |
1122 audiodb_liszt_free_results(adb, liszt); | |
1122 | 1123 |
1123 /* FIXME: the mean isn't really what we should be using here; it's | 1124 /* FIXME: the mean isn't really what we should be using here; it's |
1124 more a question of "how many independent sequences of length | 1125 more a question of "how many independent sequences of length |
1125 sequenceLength are there in the database? */ | 1126 sequenceLength are there in the database? */ |
1126 unsigned meanN = total / count; | 1127 unsigned meanN = total / count; |