mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Fix examples for PCM API. Fix dogygen warnings.
This commit is contained in:
parent
c7a0708a23
commit
91273c228f
4 changed files with 24 additions and 22 deletions
|
|
@ -419,9 +419,11 @@ static void convert_to_s16(snd_pcm_rate_t *rate, int16_t *buf,
|
|||
snd_pcm_uframes_t offset, unsigned int frames,
|
||||
unsigned int channels)
|
||||
{
|
||||
#ifndef DOC_HIDDEN
|
||||
#define GET16_LABELS
|
||||
#include "plugin_ops.h"
|
||||
#undef GET16_LABELS
|
||||
#endif /* DOC_HIDDEN */
|
||||
void *get = get16_labels[rate->get_idx];
|
||||
const char *src;
|
||||
int16_t sample;
|
||||
|
|
@ -438,9 +440,11 @@ static void convert_to_s16(snd_pcm_rate_t *rate, int16_t *buf,
|
|||
for (c = 0; c < channels; c++) {
|
||||
src = srcs[c];
|
||||
goto *get;
|
||||
#ifndef DOC_HIDDEN
|
||||
#define GET16_END after_get
|
||||
#include "plugin_ops.h"
|
||||
#undef GET16_END
|
||||
#endif /* DOC_HIDDEN */
|
||||
after_get:
|
||||
*buf++ = sample;
|
||||
srcs[c] += src_step[c];
|
||||
|
|
@ -453,9 +457,11 @@ static void convert_from_s16(snd_pcm_rate_t *rate, const int16_t *buf,
|
|||
snd_pcm_uframes_t offset, unsigned int frames,
|
||||
unsigned int channels)
|
||||
{
|
||||
#ifndef DOC_HIDDEN
|
||||
#define PUT16_LABELS
|
||||
#include "plugin_ops.h"
|
||||
#undef PUT16_LABELS
|
||||
#endif /* DOC_HIDDEN */
|
||||
void *put = put16_labels[rate->put_idx];
|
||||
char *dst;
|
||||
int16_t sample;
|
||||
|
|
@ -473,9 +479,11 @@ static void convert_from_s16(snd_pcm_rate_t *rate, const int16_t *buf,
|
|||
dst = dsts[c];
|
||||
sample = *buf++;
|
||||
goto *put;
|
||||
#ifndef DOC_HIDDEN
|
||||
#define PUT16_END after_put
|
||||
#include "plugin_ops.h"
|
||||
#undef PUT16_END
|
||||
#endif /* DOC_HIDDEN */
|
||||
after_put:
|
||||
dsts[c] += dst_step[c];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue