summaryrefslogblamecommitdiffstats
path: root/src/sound.h
blob: db8d581ac5b21ad1b8f4439682c6d6b91168a601 (plain) (tree)
1
2
3
4
5
6
7
8
9



                      




                                       
                                                                                             


                                        



                                    
#ifndef SOUND_H
#define SOUND_H

#include <portaudio.h>
#include "synth_engine.h"

/* #define SAMPLE_RATE       (44100) */
/* #define FRAMES_PER_BUFFER (256) */

void init_sound(synth_t * synth, PaStreamCallback *streamCallback, const char * device_name);

char *get_soundcards();
int get_soundcard_id(const char * name);

void destroy_sound(synth_t * synth);

#endif /* SOUND_H */