Path: blob/master/thirdparty/linuxbsd_headers/alsa/pcm_external.h
9903 views
/**1* \file include/pcm_external.h2* \brief External PCM plugin SDK3* \author Takashi Iwai <[email protected]>4* \date 20055*6* Extern PCM plugin SDK.7*/89/*10* This library is free software; you can redistribute it and/or modify11* it under the terms of the GNU Lesser General Public License as12* published by the Free Software Foundation; either version 2.1 of13* the License, or (at your option) any later version.14*15* This program is distributed in the hope that it will be useful,16* but WITHOUT ANY WARRANTY; without even the implied warranty of17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18* GNU Lesser General Public License for more details.19*20* You should have received a copy of the GNU Lesser General Public21* License along with this library; if not, write to the Free Software22* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA23*24*/25#ifndef __ALSA_PCM_EXTERNAL_H26#define __ALSA_PCM_EXTERNAL_H2728#include "pcm.h"2930#ifdef __cplusplus31extern "C" {32#endif3334/**35* \defgroup Plugin_SDK External PCM plugin SDK36* \{37*/3839/**40* Define the object entry for external PCM plugins41*/42#define SND_PCM_PLUGIN_ENTRY(name) _snd_pcm_##name##_open4344/**45* Define the symbols of the given plugin with versions46*/47#define SND_PCM_PLUGIN_SYMBOL(name) SND_DLSYM_BUILD_VERSION(SND_PCM_PLUGIN_ENTRY(name), SND_PCM_DLSYM_VERSION);4849/**50* Define the plugin51*/52#define SND_PCM_PLUGIN_DEFINE_FUNC(plugin) \53int SND_PCM_PLUGIN_ENTRY(plugin) (snd_pcm_t **pcmp, const char *name,\54snd_config_t *root, snd_config_t *conf, \55snd_pcm_stream_t stream, int mode)5657#include "pcm_ioplug.h"58#include "pcm_extplug.h"5960int snd_pcm_parse_control_id(snd_config_t *conf, snd_ctl_elem_id_t *ctl_id, int *cardp,61int *cchannelsp, int *hwctlp);6263/** \} */6465#ifdef __cplusplus66}67#endif6869#endif /* __ALSA_PCM_EXTERNAL_H */707172