mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Fixed issue with Cancel button of LoadSample
This commit is contained in:
parent
29c5d3b83a
commit
9c67e1cebf
2 changed files with 5 additions and 1 deletions
|
@ -342,7 +342,7 @@ class ClipSelector : public Fl_Button
|
|||
else if ( strcmp(m->label(), "Load") == 0 )
|
||||
{
|
||||
clipSelectorLoad( ID, clipNum );
|
||||
loadClip( clipNum, "---" );
|
||||
//loadClip( clipNum, "---" );
|
||||
}
|
||||
else if ( strcmp(m->label(), "1") == 0 ) {
|
||||
EventLooperLoopLength e = EventLooperLoopLength(ID, clipNum ,1);
|
||||
|
|
|
@ -33,6 +33,10 @@ static string choose_file()
|
|||
static void clipSelectorLoad(int track, int scene)
|
||||
{
|
||||
string filePathName = choose_file();
|
||||
|
||||
if ( strcmp( filePathName.c_str(), "" ) == 0 )
|
||||
return;
|
||||
|
||||
AudioBuffer* ab = Worker::loadSample( filePathName );
|
||||
EventLooperLoad e = EventLooperLoad( track, scene, ab );
|
||||
writeToDspRingbuffer( &e );
|
||||
|
|
Loading…
Add table
Reference in a new issue