aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2/sampler.c
AgeCommit message (Collapse)AuthorFilesLines
2022-05-26Avoid "else" after "return"David Robillard1-4/+16
2022-05-09Fix incorrect spelling and test for regression with codespellDavid Robillard1-1/+1
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 Robillard1-459/+445
2020-12-26Add clang-format suppression commentsDavid Robillard1-0/+15
2020-12-18eg-sampler: Send update to UI if gain parameter changesFilipe Coelho1-8/+18
2020-12-18eg-sampler: Save and restore gain parameter valueFilipe Coelho1-2/+28
2020-12-16Avoid clang-tidy warning about sizeofDavid Robillard1-1/+1
2020-12-16Fix implicit and narrowing conversionsDavid Robillard1-1/+1
2020-12-16Isolate variable declarations and initialize all variablesDavid Robillard1-5/+5
2020-12-16Simplify degenerate switchesDavid Robillard1-6/+1
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 Robillard1-2/+2
2020-03-17Use LV2_ATOM_BODY macros in examples instead of pointer arithmeticRuoxi Wang1-1/+1
2019-01-10Sort includes from local to standard and fix exposed issuesDavid Robillard1-11/+11
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 Robillard1-1/+3
2018-09-22Install standard headers to simpler include pathsDavid Robillard1-11/+11
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>
2017-02-12Fix uninitialized sndfile structureDavid Robillard1-1/+1
2017-02-12Fix memory leakDavid Robillard1-0/+2
2016-10-19Gracefully handle failure to load sampleDavid Robillard1-5/+8
2016-10-05Write output between events with sample accuracyDavid Robillard1-104/+128
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-04eg-sampler: Add waveform display to UIDavid Robillard1-20/+44
2016-07-31Fix compilation with C++David Robillard1-2/+2
2016-07-31Fix memory leakDavid Robillard1-1/+2
2016-07-31eg-sampler: Support thread-safe state restorationDavid Robillard1-63/+83
2016-07-31Clean up example plugin initializationDavid Robillard1-39/+18
2016-07-30Use calloc to allocate instancesDavid Robillard1-3/+2
2015-12-03eg-sampler: Fix handling of state file pathsDavid Robillard1-22/+45
2015-02-20Update UI when state changes.David Robillard1-0/+11
2014-11-02Add gain parameter to eg-sampler.David Robillard1-6/+35
2014-10-31eg-sampler: Support patch:Get, and request initial state from UI.David Robillard1-0/+7
2014-08-06Order book chapters in build script rather than by bundle name.David Robillard1-0/+483
2013-02-11Order examples in a sensible progression for the book.David Robillard1-498/+0
2013-01-10Expose sampler parameter to host.David Robillard1-2/+2
Update to new definition of patch:Set.
2013-01-08Add logger convenience API.David Robillard1-34/+19
2012-12-23Windows compilation fixes.David Robillard1-1/+3
2012-08-31Fix crash on save when no sample is loaded.David Robillard1-3/+6
2012-08-14midi: Remove non-standard midi:Tick message type.David Robillard1-2/+7
midi: Add C definitions for message types and standard controllers. midi: Fix definition of SystemExclusive status byte. Use new MIDI API in eg-sampler.
2012-08-11Improve const correctness.David Robillard1-11/+11
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-3/+3
-Wmissing-prototypes.
2012-04-12Make all atom/util.h functions start with lv2_atom.David Robillard1-2/+1
2012-04-06Use a smaller and freely licensed default sample.David Robillard1-1/+1
2012-04-06Tidy and improve documentation.David Robillard1-40/+57
2012-04-05Twiddle log extension class hierarchy a bit, and all log:Trace level.David Robillard1-63/+89
Use log extension in eg-sample if available.
2012-03-30Fix screwy invalid ExtensionData definitions as classes (now matches how ↵David Robillard1-4/+8
Feature is used). Add status return codes to state methods for error handling.
2012-03-27Add end_run hook to worker interface.David Robillard1-1/+1
2012-03-23Add worker extension to remove thread stuff from plugins.David Robillard1-156/+103
2012-03-16Update for patch extension.David Robillard1-2/+2