Add external PCM plugin SDK (draft version)

Added the external PCM plugin SDK (draft version).
This can be used to create external PCM plugins.
Example codes are found in alsa-plugins directory.
This commit is contained in:
Takashi Iwai 2005-02-08 20:57:51 +00:00
parent d7a32ca06b
commit 94c4cdcd30
7 changed files with 1053 additions and 3 deletions

16
include/pcm_external.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef __ALSA_PCM_EXTERNAL_H
#define __ALSA_PCM_EXTERNAL_H
#include "pcm.h"
#define SND_PCM_PLUGIN_ENTRY(name) _snd_pcm_##name##_open
#define SND_PCM_PLUGIN_SYMBOL(name) SND_DLSYM_BUILD_VERSION(SND_PCM_PLUGIN_ENTRY(name), SND_PCM_DLSYM_VERSION);
#define SND_PCM_PLUGIN_DEFINE_FUNC(plugin) \
int SND_PCM_PLUGIN_ENTRY(plugin) (snd_pcm_t **pcmp, const char *name,\
snd_config_t *root, snd_config_t *conf, \
snd_pcm_stream_t stream, int mode)
#include "pcm_ioplug.h"
#endif /* __ALSA_PCM_EXTERNAL_H */