/* im_alsa.h * - read pcm data from oss devices * * $Id: im_alsa.h,v 1.5 2004/03/01 20:58:02 karl Exp $ * * by Jason Chu , based * on im_oss.c which is... * Copyright (c) 2001 Michael Smith * * This program is distributed under the terms of the GNU General * Public License, version 2. You may use, modify, and redistribute * it under the terms of this license. A copy should be included * with this source. */ #ifndef __IM_ALSA_H__ #define __IM_ALSA_H__ #include #include #include #include "inputmodule.h" typedef struct { unsigned int rate; int channels; unsigned buffer_time; int periods; int frame_bytes; snd_pcm_t *fd; char **metadata; int newtrack; mutex_t metadatalock; } im_alsa_state; input_module_t *alsa_open_module(module_param_t *params); #endif /* __IM_ALSA */