-Fixed ClipSelector clear name, fixed looperclip playing on load bug

main
Harry van Haaren 2013-12-11 18:22:12 +00:00
parent 672429d916
commit 04bff4cde2
3 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,7 @@
-AudioEditor shows green / red based on BPM analysis of the sample
-Clearing clips bug fixed
-Loading bug re-trigger bug fixed
1.0: Tuesday, 10th December 2013

View File

@ -72,6 +72,11 @@ void ClipSelector::setState( int clipNum, GridLogic::State s )
//cout << "ClipSelector::setState() t = " << ID << " clipNum = " << clipNum << " state = " << s << endl;
#endif
clips[clipNum].setState( s );
if ( s == GridLogic::STATE_EMPTY )
{
clips[clipNum].setName("");
}
redraw();
}

View File

@ -111,6 +111,11 @@ void LooperClip::load( AudioBuffer* ab )
{
_loaded = true;
_recording = false;
_playing = false;
_queuePlay = false;
_queueStop = false;
_queueRecord= false;
if ( _buffer )
{
@ -121,6 +126,7 @@ void LooperClip::load( AudioBuffer* ab )
_buffer = ab;
_playhead = 0;
jack->getControllerUpdater()->setTrackSceneProgress(track, scene, 0 );
// set the endpoint to the buffer's size
_recordhead = _buffer->getData().size();