Fix midi playback stopping after moving a note (#3718).
git-svn-id: svn://localhost/ardour2/branches/3.0@8957 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6dcb20af78
commit
6b8c8697f0
|
@ -593,9 +593,9 @@ MidiDiskstream::commit (framecnt_t nframes)
|
||||||
bool need_butler = false;
|
bool need_butler = false;
|
||||||
|
|
||||||
if (_actual_speed < 0.0) {
|
if (_actual_speed < 0.0) {
|
||||||
playback_sample -= playback_distance;
|
playback_sample -= nframes;
|
||||||
} else {
|
} else {
|
||||||
playback_sample += playback_distance;
|
playback_sample += nframes;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (adjust_capture_position != 0) {
|
if (adjust_capture_position != 0) {
|
||||||
|
@ -814,7 +814,6 @@ MidiDiskstream::do_refill ()
|
||||||
uint32_t frames_read = g_atomic_int_get(&_frames_read_from_ringbuffer);
|
uint32_t frames_read = g_atomic_int_get(&_frames_read_from_ringbuffer);
|
||||||
uint32_t frames_written = g_atomic_int_get(&_frames_written_to_ringbuffer);
|
uint32_t frames_written = g_atomic_int_get(&_frames_written_to_ringbuffer);
|
||||||
if ((frames_written - frames_read) >= midi_readahead) {
|
if ((frames_written - frames_read) >= midi_readahead) {
|
||||||
//cout << "MDS Nothing to do. all fine" << endl;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user