mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
This commit is contained in:
parent
cb956e3e48
commit
30b087ab3d
577 changed files with 9003 additions and 8997 deletions
|
|
@ -178,13 +178,13 @@ BeatBox::process (int nsamples)
|
|||
clear_pending = false;
|
||||
}
|
||||
|
||||
framepos_t last_output_time = 0;
|
||||
samplepos_t last_output_time = 0;
|
||||
|
||||
for (Events::iterator ee = _current_events.begin(); ee != _current_events.end(); ++ee) {
|
||||
Event* e = (*ee);
|
||||
|
||||
if (e->size && (e->time >= process_start && e->time < process_end)) {
|
||||
framepos_t sample_offset_in_buffer = superclock_to_samples (offset + e->time - process_start, _sample_rate);
|
||||
samplepos_t sample_offset_in_buffer = superclock_to_samples (offset + e->time - process_start, _sample_rate);
|
||||
if ((buffer = jack_midi_event_reserve (out_buf, sample_offset_in_buffer, e->size)) != 0) {
|
||||
memcpy (buffer, e->buf, e->size);
|
||||
outbound_tracker.track (e->buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue