diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-06-27 22:37:53 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-06-27 22:37:53 +0300 |
commit | 60c82a72fedd719f69c1f1de896aca00784a2881 (patch) | |
tree | 3679e0886fc12aa8eeeab60260347ee7a0c5ae0e /src/sound.h | |
parent | e77d4d42cacd21bf80e4f47cba2fe85f5a5b0991 (diff) | |
download | synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.tar.gz synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.tar.bz2 synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.zip |
Changes
Diffstat (limited to 'src/sound.h')
-rw-r--r-- | src/sound.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sound.h b/src/sound.h new file mode 100644 index 0000000..9e0c066 --- /dev/null +++ b/src/sound.h @@ -0,0 +1,16 @@ +#ifndef SOUND_H +#define SOUND_H + +#include <portaudio.h> +#include <string.h> + +#include "synth_engine.h" + +/* #define SAMPLE_RATE (44100) */ +/* #define FRAMES_PER_BUFFER (256) */ + +void init_sound(synth_t * synth, PaStreamCallback *streamCallback); + +void destroy_sound(synth_t * synth); + +#endif /* SOUND_H */ |