-Updated Time, working on bar() nframes

This commit is contained in:
Harry van Haaren 2013-10-12 13:28:47 +01:00
parent 09de7af563
commit cc95134365
3 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ class AudioBuffer
stringstream s;
s << ID;
sprintf ( name, "%s\n", s.str().c_str() );
}
}
/// this function is used for "resizing" an exisiting buffer, and should
/// not be called for any other reason.

View file

@ -14,7 +14,7 @@ class TimeObserver
virtual void setFpb(int fpb){};
virtual void bar(){LUPPP_WARN("bar() int not overriden");}
//virtual void bar(){LUPPP_WARN("bar() int not overriden");}
virtual void bar(int framesInNframes){};

View file

@ -141,7 +141,7 @@ void TimeManager::process(Buffers* buffers)
if ( beat % (int)buffers->transportPosition->beats_per_bar == 0 )
{
// inform observers of new bar SECOND
for(uint i = 0; i < observers.size(); i++) { observers.at(i)->bar(); }
for(uint i = 0; i < observers.size(); i++) { observers.at(i)->bar(nframesRemainder); }
buffers->transportPosition->bar++;
}