From 30b087ab3d28f1585987fa3f6ae006562ae192e3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Sep 2017 12:39:17 -0400 Subject: 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 --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc') diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc index 0c3e20a888..e6cf1e29d3 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc @@ -133,7 +133,7 @@ typedef struct { LV2_Log_Logger logger; LV2_Worker_Schedule* schedule; LV2_Atom_Forge forge; - LV2_Atom_Forge_Frame frame; + LV2_Atom_Forge_Frame sample; #ifdef LV2_EXTENDED LV2_Midnam* midnam; @@ -243,15 +243,15 @@ inform_ui (AFluidSynth* self) return; } - LV2_Atom_Forge_Frame frame; + LV2_Atom_Forge_Frame sample; lv2_atom_forge_frame_time (&self->forge, 0); - x_forge_object (&self->forge, &frame, 1, self->patch_Set); + x_forge_object (&self->forge, &sample, 1, self->patch_Set); lv2_atom_forge_property_head (&self->forge, self->patch_property, 0); lv2_atom_forge_urid (&self->forge, self->afs_sf2file); lv2_atom_forge_property_head (&self->forge, self->patch_value, 0); lv2_atom_forge_path (&self->forge, self->current_sf2_file_path, strlen (self->current_sf2_file_path)); - lv2_atom_forge_pop (&self->forge, &frame); + lv2_atom_forge_pop (&self->forge, &sample); } static float @@ -421,7 +421,7 @@ run (LV2_Handle instance, uint32_t n_samples) const uint32_t capacity = self->notify->atom.size; lv2_atom_forge_set_buffer (&self->forge, (uint8_t*)self->notify, capacity); - lv2_atom_forge_sequence_head (&self->forge, &self->frame, 0); + lv2_atom_forge_sequence_head (&self->forge, &self->sample, 0); if (!self->initialized || self->reinit_in_progress) { memset (self->p_ports[FS_PORT_OUT_L], 0, n_samples * sizeof (float)); @@ -570,10 +570,10 @@ run (LV2_Handle instance, uint32_t n_samples) self->inform_ui = false; /* emit stateChanged */ - LV2_Atom_Forge_Frame frame; + LV2_Atom_Forge_Frame sample; lv2_atom_forge_frame_time(&self->forge, 0); - x_forge_object(&self->forge, &frame, 1, self->state_Changed); - lv2_atom_forge_pop(&self->forge, &frame); + x_forge_object(&self->forge, &sample, 1, self->state_Changed); + lv2_atom_forge_pop(&self->forge, &sample); /* send .sf2 filename */ inform_ui (self); -- cgit v1.2.3