#ifndef AUDIO_H #define AUDIO_H typedef struct audio_handle { void *h; unsigned long frames; } audio_handle; typedef enum audio_handle_types { RECORD, PLAYBACK } audio_handle_types; int audio_create(audio_handle *handle, audio_handle_types t); int audio_play(audio_handle *handle, char *buf); int audio_record(audio_handle *handle, char *buf); void audio_destroy(audio_handle *handle); #endif