Mercurial > hg > dmlib
diff jssmix.c @ 186:dc22e3f77c9a
Fix tempo (callback frequency) calculation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 16:25:15 +0300 |
parents | fe0c7ae05776 |
children | b7e23d91a8c2 |
line wrap: on
line diff
--- a/jssmix.c Sat Oct 06 15:34:29 2012 +0300 +++ b/jssmix.c Sat Oct 06 16:25:15 2012 +0300 @@ -465,13 +465,9 @@ { assert(mixer); - if (cbFreq < 1 || cbFreq >= mixer->outFreq) - JSSERROR(DMERR_INVALID_ARGS, DMERR_INVALID_ARGS, - "Invalid callback frequency given (%i / %i)\n", cbFreq, mixer->outFreq); - JSS_LOCK(mixer); - mixer->cbFreq = mixer->outFreq / cbFreq; + mixer->cbFreq = cbFreq; mixer->cbCounter = 0; //fprintf(stderr, "set(outFreq = %d, cbFreq = %d) = %d\n", mixer->outFreq, cbFreq, mixer->cbFreq);