Browse Source

freeze function bugfix

master
Nasca Octavian PAUL 11 years ago
parent
commit
4cd3984c08
2 changed files with 4 additions and 2 deletions
  1. +3
    -2
      Player.cpp
  2. +1
    -0
      readme.txt

+ 3
- 2
Player.cpp View File

@@ -387,11 +387,10 @@ void Player::computesamples(){
bool result=true;
float in_pos_100=(REALTYPE) ai->info.currentsample/(REALTYPE)ai->info.nsamples*100.0;
int readsize=stretchl->get_nsamples(in_pos_100);
if (freeze_mode) readsize=0;


if (first_in_buf) readsize=stretchl->get_nsamples_for_fill();
if (readsize) result=(ai->read(readsize,inbuf_i)==(readsize));
if (readsize&&(!freeze_mode)) result=(ai->read(readsize,inbuf_i)==(readsize));
if (result){
float in_pos=(REALTYPE) ai->info.currentsample/(REALTYPE)ai->info.nsamples;
if (ai->eof) in_pos=0.0;
@@ -406,6 +405,7 @@ void Player::computesamples(){
stretchl->window_type=window_type;
stretchr->window_type=window_type;
REALTYPE s_onset=onset_detection_sensitivity;
if (freeze_mode) s_onset=0.0;
stretchl->set_onset_detection_sensitivity(s_onset);
stretchr->set_onset_detection_sensitivity(s_onset);
REALTYPE onset_l=stretchl->process(inbuf.l,readsize);
@@ -417,6 +417,7 @@ void Player::computesamples(){
// stretchl->process_output(stretchl->out_buf,stretchl->out_bufsize);
// stretchr->process_output(stretchr->out_buf,stretchr->out_bufsize);
int nskip=stretchl->get_skip_nsamples();
if (freeze_mode) nskip=0;
if (nskip>0) ai->skip(nskip);




+ 1
- 0
readme.txt View File

@@ -75,6 +75,7 @@ History:
- Ignored the commandline parameters starting with "-" (usefull for macosx)
20110303(2.2-0)
- gzip bugfix which prevents loading of the .psx files on Windows
- bugfix on freeze function on onsets

Enjoy! :)
Paul


Loading…
Cancel
Save