Browse Source

Clean up whitespace.

zrythm_meson
David Robillard 8 years ago
parent
commit
8adeb93d8d
  1. 1
      lv2/lv2plug.in/ns/ext/event/event-helpers.h
  2. 8
      lv2/lv2plug.in/ns/ext/resize-port/resize-port.h
  3. 2
      lv2/lv2plug.in/ns/extensions/ui/ui.h
  4. 1
      lv2/lv2plug.in/ns/lv2core/wscript
  5. 2
      plugins/eg-amp.lv2/amp.c
  6. 3
      plugins/eg-amp.lv2/wscript
  7. 6
      plugins/eg-fifths.lv2/fifths.c
  8. 2
      plugins/eg-fifths.lv2/wscript
  9. 2
      plugins/eg-metro.lv2/metro.c
  10. 3
      plugins/eg-metro.lv2/wscript
  11. 3
      plugins/eg-midigate.lv2/wscript
  12. 2
      plugins/eg-sampler.lv2/wscript
  13. 12
      plugins/eg-scope.lv2/examploscope_ui.c
  14. 3
      plugins/wscript
  15. 2
      wscript

1
lv2/lv2plug.in/ns/ext/event/event-helpers.h

@ -263,4 +263,3 @@ lv2_event_write_event(LV2_Event_Iterator* iter, @@ -263,4 +263,3 @@ lv2_event_write_event(LV2_Event_Iterator* iter,
#endif
#endif /* LV2_EVENT_HELPERS_H */

8
lv2/lv2plug.in/ns/ext/resize-port/resize-port.h

@ -56,15 +56,15 @@ typedef struct { @@ -56,15 +56,15 @@ typedef struct {
/**
Resize a port buffer to at least `size` bytes.
This function MAY return an error, in which case the port buffer was not
resized and the port is still connected to the same location. Plugins
MUST gracefully handle this situation.
This function is in the audio threading class.
The host MUST preserve the contents of the port buffer when resizing.
Plugins MAY resize a port many times in a single run callback. Hosts
SHOULD make this as inexpensive as possible.
*/

2
lv2/lv2plug.in/ns/extensions/ui/ui.h

@ -207,7 +207,7 @@ typedef struct _LV2UI_Descriptor { @@ -207,7 +207,7 @@ typedef struct _LV2UI_Descriptor {
This member may be set to NULL if the UI is not interested in supporting
any extensions. This is similar to LV2_Descriptor::extension_data().
*/
const void* (*extension_data)(const char* uri);
} LV2UI_Descriptor;

1
lv2/lv2plug.in/ns/lv2core/wscript

@ -80,4 +80,3 @@ def post_dist(ctx): @@ -80,4 +80,3 @@ def post_dist(ctx):
os.remove(os.path.join(ctx.path.abspath(), 'NEWS'))
except:
pass

2
plugins/eg-amp.lv2/amp.c

@ -214,7 +214,7 @@ static const LV2_Descriptor descriptor = { @@ -214,7 +214,7 @@ static const LV2_Descriptor descriptor = {
indices to find all the plugins defined in the library. The index is not an
indentifier, the URI of the returned descriptor is used to determine the
identify of the plugin.
This method is in the ``discovery'' threading class, so no other functions
or methods in this plugin library will be called concurrently with it.
*/

3
plugins/eg-amp.lv2/wscript

@ -22,7 +22,7 @@ def configure(conf): @@ -22,7 +22,7 @@ def configure(conf):
if not autowaf.is_child():
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2')
conf.check(features='c cshlib', lib='m', uselib_store='M', mandatory=False)
autowaf.display_msg(conf, 'LV2 bundle directory', conf.env.LV2DIR)
@ -64,4 +64,3 @@ def build(bld): @@ -64,4 +64,3 @@ def build(bld):
uselib = 'M LV2',
includes = includes)
obj.env.cshlib_PATTERN = module_pat

6
plugins/eg-fifths.lv2/fifths.c

@ -95,7 +95,7 @@ instantiate(const LV2_Descriptor* descriptor, @@ -95,7 +95,7 @@ instantiate(const LV2_Descriptor* descriptor,
// Map URIs and initialise forge/logger
map_fifths_uris(self->map, &self->uris);
return (LV2_Handle)self;
}
@ -142,12 +142,12 @@ run(LV2_Handle instance, @@ -142,12 +142,12 @@ run(LV2_Handle instance,
if (note <= 127 - 7) {
// Make a note one 5th (7 semitones) higher than input
MIDINoteEvent fifth;
// Could simply do fifth.event = *ev here instead...
fifth.event.time.frames = ev->time.frames; // Same time
fifth.event.body.type = ev->body.type; // Same type
fifth.event.body.size = ev->body.size; // Same size
fifth.msg[0] = msg[0]; // Same status
fifth.msg[1] = msg[1] + 7; // Pitch up 7 semitones
fifth.msg[2] = msg[2]; // Same velocity

2
plugins/eg-fifths.lv2/wscript

@ -39,7 +39,7 @@ def build(bld): @@ -39,7 +39,7 @@ def build(bld):
target = '%s/%s' % (bundle, 'manifest.ttl'),
install_path = '${LV2DIR}/%s' % bundle,
LIB_EXT = module_ext)
# Copy other data files to build bundle (build/eg-fifths.lv2)
for i in ['fifths.ttl']:
bld(features = 'subst',

2
plugins/eg-metro.lv2/metro.c

@ -69,7 +69,7 @@ typedef enum { @@ -69,7 +69,7 @@ typedef enum {
wave which is conceptually played continuously. The 'tick' is generated by
enveloping the amplitude so there is a short attack/decay peak around a
tick, and silence the rest of the time.
This example uses a simple AD envelope with fixed parameters. A more
sophisticated implementation might use a more advanced envelope and allow
the user to modify these parameters, the frequency of the wave, and so on.

3
plugins/eg-metro.lv2/wscript

@ -41,7 +41,7 @@ def build(bld): @@ -41,7 +41,7 @@ def build(bld):
target = '%s/%s' % (bundle, 'manifest.ttl'),
install_path = '${LV2DIR}/%s' % bundle,
LIB_EXT = module_ext)
# Copy other data files to build bundle (build/eg-metro.lv2)
bld(features = 'subst',
is_copy = True,
@ -63,4 +63,3 @@ def build(bld): @@ -63,4 +63,3 @@ def build(bld):
use = ['M', 'LV2'],
includes = includes)
obj.env.cshlib_PATTERN = module_pat

3
plugins/eg-midigate.lv2/wscript

@ -22,7 +22,7 @@ def configure(conf): @@ -22,7 +22,7 @@ def configure(conf):
if not autowaf.is_child():
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2')
autowaf.display_msg(conf, 'LV2 bundle directory', conf.env.LV2DIR)
print('')
@ -62,4 +62,3 @@ def build(bld): @@ -62,4 +62,3 @@ def build(bld):
uselib = 'LV2',
includes = includes)
obj.env.cshlib_PATTERN = module_pat

2
plugins/eg-sampler.lv2/wscript

@ -45,7 +45,7 @@ def build(bld): @@ -45,7 +45,7 @@ def build(bld):
target = '%s/%s' % (bundle, 'manifest.ttl'),
install_path = '${LV2DIR}/%s' % bundle,
LIB_EXT = module_ext)
# Copy other data files to build bundle (build/eg-sampler.lv2)
for i in ['sampler.ttl', 'click.wav']:
bld(features = 'subst',

12
plugins/eg-scope.lv2/examploscope_ui.c

@ -296,17 +296,17 @@ on_expose_event(GtkWidget* widget, GdkEventExpose* ev, gpointer data) @@ -296,17 +296,17 @@ on_expose_event(GtkWidget* widget, GdkEventExpose* ev, gpointer data)
/**
Parse raw audio data and prepare for later drawing.
Note this is a toy example, which is really a waveform display, not an
oscilloscope. A serious scope would not display samples as is.
Signals above ~ 1/10 of the sampling-rate will not yield a useful visual
display and result in a rather unintuitive representation of the actual
waveform.
Ideally the audio-data would be buffered and upsampled here and after that
written in a display buffer for later use.
For more information, see
https://wiki.xiph.org/Videos/Digital_Show_and_Tell
http://lac.linuxaudio.org/2013/papers/36.pdf
@ -587,7 +587,7 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj) @@ -587,7 +587,7 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj)
fprintf(stderr, "eg-scope.lv2 UI error: Corrupt state message\n");
return 1;
}
// Get the values we need from the body of the property value atoms
const int32_t spp = ((const LV2_Atom_Int*)spp_val)->body;
const float amp = ((const LV2_Atom_Float*)amp_val)->body;
@ -603,7 +603,7 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj) @@ -603,7 +603,7 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj)
/**
Receive data from the DSP-backend.
This is called by the host, typically at a rate of around 25 FPS.
Ideally this happens regularly and with relatively low latency, but there

3
plugins/wscript

@ -15,7 +15,7 @@ def bld_book_src(task): @@ -15,7 +15,7 @@ def bld_book_src(task):
filenames += [i.abspath()]
literasc.gen(open(task.outputs[0].abspath(), 'w'), filenames)
def build(bld):
files = [bld.path.find_node('README.txt')]
for i in ['eg-amp.lv2',
@ -41,4 +41,3 @@ def build(bld): @@ -41,4 +41,3 @@ def build(bld):
stylesdir, pygments_style),
source = 'book.txt',
target = 'book.html')

2
wscript

@ -259,7 +259,7 @@ def load_ttl(files): @@ -259,7 +259,7 @@ def load_ttl(files):
for f in files:
model.parse(f, format='n3')
return model
# Task to build extension index
def build_index(task):
sys.path.append('./lv2specgen')

Loading…
Cancel
Save