aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2
AgeCommit message (Collapse)AuthorFilesLines
2021-03-10eg-sampler: Fix out of bounds sample read after loading new fileFilipe Coelho1-0/+4
2020-12-26Format all code with clang-formatDavid Robillard5-999/+982
2020-12-26Make include guards surround all header contentsDavid Robillard1-3/+3
For consistency, and because clang-tidy can't figure out if a define is an include guard unless it ends the file.
2020-12-26Add clang-format suppression commentsDavid Robillard3-0/+21
2020-12-18eg-sampler: Send update to UI if gain parameter changesFilipe Coelho2-8/+46
2020-12-18eg-sampler: Save and restore gain parameter valueFilipe Coelho1-2/+28
2020-12-18eg-sampler: Fix default gain valueFilipe Coelho1-1/+1
The initial gain coefficient in the code is 1.0 (full volume). The parameter itself is in dB, though, so the matching external default value is zero.
2020-12-16Add assertions for atom buffer sizesDavid Robillard1-0/+5
This avoids warnings about potential null pointer dereferences, which is true, but in this case the buffer are static so it's really a programming error if there is ever an overrun.
2020-12-16Clean up includesDavid Robillard4-2/+15
2020-12-16Avoid clang-tidy warning about sizeofDavid Robillard1-1/+1
2020-12-16Fix implicit and narrowing conversionsDavid Robillard2-3/+3
2020-12-16Isolate variable declarations and initialize all variablesDavid Robillard1-5/+5
2020-12-16Simplify degenerate switchesDavid Robillard2-12/+2
2020-09-27Don't use else after returnDavid Robillard1-3/+9
2020-09-27Fix narrowing conversionsDavid Robillard1-11/+11
2020-09-27Clean up includesDavid Robillard1-0/+2
2020-07-25Revert "Use LV2_ATOM_BODY macros in examples instead of pointer arithmetic"David Robillard1-1/+1
This reverts commit 3aad5eb1b08ed5c27e60aa36021c4a85ce90c08f, which broke the example plugins.
2020-07-15Fix incorrect printf format specifiersDavid Robillard2-3/+3
2020-05-22eg-sampler: Fix size of note-on atom sent from UIDavid Robillard1-1/+1
2020-03-17Use LV2_ATOM_BODY macros in examples instead of pointer arithmeticRuoxi Wang1-1/+1
2020-03-17eg-sampler: Destroy widgets in the correct orderMichael Fisher1-6/+19
2020-03-17eg-sampler: Improve UI show/hide handlingMichael Fisher1-4/+43
Ensures that gtk_init() is only called once, and that the idle callback does not block the UI thread.
2020-03-17Add a UI feature to request a parameter value from the hostDavid Robillard2-7/+28
2020-02-16Use standard Turtle lexer in PygmentsDavid Robillard2-3/+3
A Turtle lexer was finally added in Pygments 2.1.
2020-02-16Make parameter data validateDavid Robillard1-2/+3
This is rather annoying, but unfortunately xsd:decimal is not a related type to xsd:float. A future smarter version of the validator will be able to deal with this, but for now we'll have to be explicit and tolerate a bit of unpleasant syntactic noise.
2019-11-10Simplify plugin building and set up source tree run environmentDavid Robillard1-13/+7
This sets up LV2_PATH in waf tests so that tests can use specifications and plugins from the source tree without installing.
2019-10-17Set Gtk as a system dependency to suppress warningsDavid Robillard1-1/+4
2019-10-17Update autowafDavid Robillard1-5/+3
2019-04-21Fix building within a recursive projectDavid Robillard1-12/+3
2019-03-17Update autowaf and adapt to new APIDavid Robillard1-4/+0
2019-01-10Sort includes from local to standard and fix exposed issuesDavid Robillard5-26/+31
This order is better because it ensures that headers can stand alone and include everything they need. Several missing includes were exposed by this, and are also fixed in this commit.
2019-01-10Remove workaround for ancient MSVCDavid Robillard1-3/+1
2018-09-23Clean up includesDavid Robillard3-3/+16
2018-09-22Install standard headers to simpler include pathsDavid Robillard4-24/+24
2018-05-21eg-sampler: Fix segfault on old_sample null derefHarry van Haaren1-7/+5
Fixes a segmentation fault in eg-sampler when a sample is loaded for the first time. Dereferencing old_sample->path causes the NULL pointer segfault. Resolved by always simplifying code to always write_set_file, even if the filename is the same. Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
2018-01-05Upgrade to waf 2.0.4David Robillard1-4/+3
2017-02-12Fix uninitialized sndfile structureDavid Robillard1-1/+1
2017-02-12Fix memory leakDavid Robillard1-0/+2
2016-10-19Fix mismatched gain parameter URIDavid Robillard1-1/+1
2016-10-19Gracefully handle failure to load sampleDavid Robillard1-5/+8
2016-10-05Avoid repeatedly requesting the same peaksDavid Robillard1-0/+5
2016-10-05Write output between events with sample accuracyDavid Robillard2-105/+130
This is closer to how a non-toy plugin should work, and importantly demonstrates the proper way to emit audio while processing events. In particular, this approach makes sample-accurate session export possible (thanks to the sychronous possibilities of the worker).
2016-10-05Add play button to UIDavid Robillard1-12/+46
2016-10-05Draw waveform aligned to pixel gridDavid Robillard1-0/+3
2016-10-04eg-sampler: Add waveform display to UIDavid Robillard6-76/+466
2016-09-05Fix bundle installation directoryDavid Robillard1-0/+2
2016-07-31Fix compilation with C++David Robillard2-3/+3
2016-07-31Fix memory leakDavid Robillard1-1/+2
2016-07-31Add missing fileDavid Robillard1-0/+40
2016-07-31eg-sampler: Support thread-safe state restorationDavid Robillard4-89/+107