Browse Source

Get stop frame right when finalizing regions.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
f4661611a0
2 changed files with 3 additions and 2 deletions
  1. +0
    -1
      Timeline/Record_DS.C
  2. +3
    -1
      Timeline/Timeline.C

+ 0
- 1
Timeline/Record_DS.C View File

@@ -213,7 +213,6 @@ Record_DS::start ( nframes_t frame )
void
Record_DS::stop ( nframes_t frame )
{

if ( ! _recording )
{
printf( "programming error: attempt to stop recording when no recording is being made\n" );


+ 3
- 1
Timeline/Timeline.C View File

@@ -1167,12 +1167,14 @@ Timeline::record ( void )
void
Timeline::stop ( void )
{
nframes_t frame = transport->frame;

for ( int i = tracks->children(); i-- ; )
{
Track *t = (Track*)tracks->child( i );

if ( t->armed() && t->record_ds )
t->record_ds->stop( transport->frame );
t->record_ds->stop( frame );
}

Loggable::block_end();


Loading…
Cancel
Save