/[svn]/linuxsampler/trunk/benchmarks/triang.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/benchmarks/triang.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 720 by senkov, Sun Jul 24 18:22:56 2005 UTC revision 723 by schoenebeck, Sun Jul 24 20:01:39 2005 UTC
# Line 24  Line 24 
24  // you can e.g. open it as RAW file in Rezound  // you can e.g. open it as RAW file in Rezound
25  // (32 bit SP-FP PCM, mono, little endian, 44100kHz)  // (32 bit SP-FP PCM, mono, little endian, 44100kHz)
26  #ifndef OUTPUT_AS_RAW_WAVE  #ifndef OUTPUT_AS_RAW_WAVE
27  # define OUTPUT_AS_RAW_WAVE     1  # define OUTPUT_AS_RAW_WAVE     0
28  #endif  #endif
29    
30  // how many sample points should we calculate in one sequence  // how many sample points should we calculate in one sequence
# Line 84  float int_math(sample_t* pDestinationBuf Line 84  float int_math(sample_t* pDestinationBuf
84      clock_t start_time = clock();      clock_t start_time = clock();
85    
86      for (int run = 0; run < RUNS; run++) {      for (int run = 0; run < RUNS; run++) {
87          pIntLFO->update(0); // pro forma          pIntLFO->update(127); // pro forma
88          for (int i = 0; i < steps; ++i) {          for (int i = 0; i < steps; ++i) {
89              pDestinationBuffer[i] = pIntLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load              pDestinationBuffer[i] = pIntLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load
90          }          }
# Line 202  float numeric_di_harmonic_solution(sampl Line 202  float numeric_di_harmonic_solution(sampl
202      clock_t start_time = clock();      clock_t start_time = clock();
203    
204      for (int run = 0; run < RUNS; run++) {      for (int run = 0; run < RUNS; run++) {
205          pDiHarmonicLFO->update(0); // pro forma          pDiHarmonicLFO->update(127); // pro forma
206          for (int i = 0; i < steps; ++i) {          for (int i = 0; i < steps; ++i) {
207              pDestinationBuffer[i] = pDiHarmonicLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load              pDestinationBuffer[i] = pDiHarmonicLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load
208          }          }

Legend:
Removed from v.720  
changed lines
  Added in v.723

  ViewVC Help
Powered by ViewVC