aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* AudioFifo: remove extra white spacePhil Burk2016-12-151-3/+3
|
* Fix deadlock in AudioFifo.Greg2016-12-121-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | The deadlock scenario is the following: 1) AudioFifo is used with wait on write and read 2) Producer Thread calls write(). The buffer is full, then it gets into the while(available() == buffer.length) loop 3) a context switch happens right there, BEFORE readSemaphore.wait() 4) Consumer Thread calls read() multiple times until it depletes the buffer, then ends up in writeSemaphore.wait() 5) context switch back to the Producer Thread, which now calls readSemaphore.wait() Deadlock: the buffer is empty, and nobody is going to signal the producer that there is availability. This can be reproduced with a simple stress test. I added the stress test which is simply a copy of an existing one, with a very large value for the chunk variable. The race condition is more likely to be hit when the buffer is small, but I have hit it in "production" with 32K buffers, while generating large files (a few hundred megabytes). I am not sure the performance implications of the change, as my use cases are non-realtime. Still, all the tests pass.
* Added evaluate() to FloatSample.Phil Burk2016-11-301-28/+6
|
* FloatWaveShaper: example programPhil Burk2016-11-301-0/+134
| | | | FIXME need better solution, add evaluate to FloatSample()
* Turn down example FM carrierPhil Burk2016-11-301-4/+4
|
* cleanup for 16.7.8, doc MultiChannelSynthesizer, add DoubleTable.length()Phil Burk2016-11-301-0/+98
|
* add isStartRequired, add GroupChannel to synthPhil Burk2016-11-292-13/+7
|
* Merge pull request #41 from philburk/instrumentsPhil Burk2016-11-297-127/+384
|\ | | | | Instruments
| * Instruments: add better synth, pitch controlPhil Burk2016-10-247-127/+384
| |
* | Check for bounds when sample or envelope data is queued.Phil Burk2016-11-271-3/+36
|/ | | | | | Add unit test. Fix: #15
* Use sine waves as default in PlayGrains example.Phil Burk2016-03-231-4/+4
|
* Add clearCommandQueue() to Synthesizer.Phil Burk2015-12-141-2/+35
| | | | Also make some members final in SynthesisEngine.
* Bump build date.Phil Burk2015-11-021-3/+5
|
* fix scaling in FFTPhil Burk2015-11-021-18/+127
|
* Use AudioMath for pitch to frequency conversion.Phil Burk2015-04-293-16/+50
| | | | | | Fix ListDevices default. Cleanup interpolator in AutoCorrelator. Remove empty string from SubtractiveSynth library.
* Added a new BrownNoise unit generator that generatePhil Burk2015-01-312-6/+9
| | | | noise based on Brownian motion.
* Initial commit of code.Phil Burk2014-12-3068-0/+9074