From d3a29ffe90c63d508e49a6c89ccdf636cc9c453d Mon Sep 17 00:00:00 2001 From: pp Date: Wed, 12 Mar 2008 15:16:54 +0000 Subject: - add PortAudio sound backend - audio format argument removed from lingot_audio_new(), as it was specific to OSS backend - DIE macro, so on Windows error message will be displayed in a dialog box instead of being lost git-svn-id: https://lampka.siedziba.pl:790/svn/repos/lingot-win32@292 455248ca-bdda-0310-9134-f4ebb693071a --- src/lingot-audio.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lingot-audio.h') 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 #endif +#ifdef PORTAUDIO +#include +#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); -- cgit v1.2.3