search for: maxsamples

Displaying 3 results from an estimated 3 matches for "maxsamples".

Did you mean: maxsample
2006 Aug 31
0
OpenAl and Vorbis
...int size=0; int audiobufFill = 0; while(!audiobufReady){ //1)try to decode some data while(!audiobufReady){ float **pcm; //if there's pending, decoded audio, grab it if((size=vorbis_synthesis_pcmout(&vorbisDspState,&pcm))>0){ int count=audiobufFill/2; int maxsamples=(fragsize-audiobufFill)/vorbisInfo.channels/2;// /2 int i; for(i=0; i<size && i<maxsamples; i++){ for(int j=0;j<vorbisInfo.channels;j++){ int val=(int) (pcm[j][i]*32767.f); if(val>32767) val=32767; if(val<-32768) val=-32768; audiobuf[count...
2017 Jun 29
2
Creating two groups of random numbers
Hi all, I want to create two groups of random numbers to calculate proportions. The first group is to represent the number of cases in a study. The second group is to represent the sample size of the study. Apparently, the sample size is going to have to be bigger or equal to the number of cases, but the sample size of a study is not necessarily greater than the number of cases of another study.
2011 Jan 23
0
Error for compiling Rquantlib package 0.3.5 under Window 7 64bits
...onst QuantLib::DefaultEvent&) C:\Lib\QuantLib/ql/experimental/credit/loss.hpp:46:17: note: bool QuantLib::operator!=(const QuantLib::L oss&, const QuantLib::Loss&) C:\Lib\QuantLib/ql/pricingengines/mcsimulation.hpp:199:42: error: no match for 'operator!=' in 'maxSamples != QuantLib:: Null<long long unsigned int>()' C:\Lib\QuantLib/ql/time/period.hpp:165:17: note: candidates are: bool QuantLib::operator!=(const QuantLib::Period&, cons t QuantLib::Period&) C:\Lib\QuantLib/ql/time/date.hpp:304:17: note: bool QuantLib::operator!=(cons...