mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
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:
parent
d7a32ca06b
commit
94c4cdcd30
7 changed files with 1053 additions and 3 deletions
16
include/pcm_external.h
Normal file
16
include/pcm_external.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue