Mercurial > hg > beaglert
annotate examples/d-box/DBoxSynth.h @ 330:276a8517da13 prerelease
build_project now updates the date of the files on the bbb
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 04 Jun 2016 15:23:52 +0100 |
parents | dbeed520b014 |
children |
rev | line source |
---|---|
andrewm@0 | 1 /* |
andrewm@0 | 2 * SimpleSynth.h |
andrewm@0 | 3 * |
andrewm@0 | 4 * Created on: Oct 22, 2013 |
andrewm@0 | 5 * Author: Victor Zappi |
andrewm@0 | 6 */ |
andrewm@0 | 7 |
andrewm@0 | 8 #ifndef DBOXSYNTH_H_ |
andrewm@0 | 9 #define DBOXSYNTH_H_ |
andrewm@0 | 10 |
andrewm@0 | 11 #include <iostream> |
andrewm@0 | 12 #include <string> |
andrewm@0 | 13 #include <stdio.h> |
andrewm@0 | 14 #include <stdlib.h> |
andrewm@0 | 15 |
andrewm@0 | 16 #include "Synth.h" |
andrewm@0 | 17 |
andrewm@0 | 18 |
andrewm@0 | 19 class DBoxSynth : public Synth |
andrewm@0 | 20 { |
andrewm@0 | 21 public: |
andrewm@0 | 22 DBoxSynth(unsigned int rate, unsigned long buffer_size); |
andrewm@0 | 23 double getSample(); |
andrewm@0 | 24 double *getBlock(int block_size); |
andrewm@0 | 25 |
andrewm@0 | 26 |
andrewm@0 | 27 private: |
andrewm@0 | 28 Sampler *smp; |
andrewm@0 | 29 |
andrewm@0 | 30 }; |
andrewm@0 | 31 |
andrewm@0 | 32 |
andrewm@0 | 33 |
andrewm@0 | 34 |
andrewm@0 | 35 #endif /* DBOXSYNTH_H_ */ |