Mercurial > hg > audiodb
changeset 267:40a93d5d462c sampling
Actually use the sequenceLength -l parameter passed on the command-line
when sampling.
author | mas01cr |
---|---|
date | Mon, 16 Jun 2008 11:14:21 +0000 |
parents | 4ffa05f25a00 |
children | 30a2a45f2b70 |
files | audioDB.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/audioDB.cpp Sat Jun 14 17:13:26 2008 +0000 +++ b/audioDB.cpp Mon Jun 16 11:14:21 2008 +0000 @@ -216,6 +216,10 @@ if(args_info.SAMPLE_given) { command = COM_SAMPLE; dbName = args_info.database_arg; + sequenceLength = args_info.sequencelength_arg; + if(sequenceLength < 1 || sequenceLength > 1000) { + error("seqlen out of range: 1 <= seqlen <= 1000"); + } return 0; }