diff options
| author | pp <pp@455248ca-bdda-0310-9134-f4ebb693071a> | 2008-03-12 15:16:54 +0000 |
|---|---|---|
| committer | pp <pp@455248ca-bdda-0310-9134-f4ebb693071a> | 2008-03-12 15:16:54 +0000 |
| commit | d3a29ffe90c63d508e49a6c89ccdf636cc9c453d (patch) | |
| tree | c3f75d67de38054dea8bf448f14e2c8ff0757954 /src/lingot-audio.h | |
| parent | 4a2b70d02706c2343fdb31e8c6f50fa20b422b88 (diff) | |
- 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
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); |
