mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 17:11:40 -05:00
-Updated Time, working on bar() nframes
This commit is contained in:
parent
09de7af563
commit
cc95134365
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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){};
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue