diff options
Diffstat (limited to 'src/lingot-audio.h')
| -rw-r--r-- | src/lingot-audio.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lingot-audio.h b/src/lingot-audio.h index 996c822..49fc4ea 100644 --- a/src/lingot-audio.h +++ b/src/lingot-audio.h @@ -31,18 +31,25 @@ #include <alsa/asoundlib.h> #endif +#ifdef PORTAUDIO +#include <portaudio.h> +#endif + typedef struct _LingotAudio LingotAudio; struct _LingotAudio { #ifdef ALSA snd_pcm_t *capture_handle; + #elif defined PORTAUDIO + PaStream *stream; + unsigned char framesize; #else int dsp; // file handler. #endif }; -LingotAudio* lingot_audio_new(int channels, int rate, int format, char* fdsp); +LingotAudio* lingot_audio_new(int channels, int rate, char* fdsp); void lingot_audio_destroy(LingotAudio* audio); int lingot_audio_read(LingotAudio* audio, void* buffer, int size); |
