spAudio
Loading...
Searching...
No Matches
spInputPlugin.h
Go to the documentation of this file.
1
4#ifndef __SPINPUTPLUGIN_H
5#define __SPINPUTPLUGIN_H
6
7#include <sp/spOutputPlugin.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
26#define SP_PLUGIN_INPUT "input 1.3"
27
28typedef struct _spInputPluginRec spInputPluginRec;
29
32#if defined(MACOS)
33#pragma import on
34#endif
35
36extern spBool spIsInputPlugin(spPlugin *plugin);
44extern long spReadPlugin(spPlugin *plugin, void *data, long length);
52extern long spReadPluginInByte(spPlugin *plugin, void *data, long data_size);
61extern long spReadPluginDoubleWeighted(spPlugin *plugin, double *data, long length, double weight);
69extern long spReadPluginDouble(spPlugin *plugin, double *data, long length);
70
71/*
72 * previous frame |-------| prev_length
73 * current frame |--------| length
74 * |----| shift_length
75 * updated data |-----|
76 *
77 * if prev_length < 0, put zeros.
78 */
79extern long spReadPluginShift(spPlugin *plugin, long prev_length, long shift_length, void *data, long length);
80extern long spReadPluginShiftDoubleWeighted(spPlugin *plugin, long prev_length, long shift_length,
81 double *data, long length, double weight);
82extern long spReadPluginShiftDouble(spPlugin *plugin, long prev_length, long shift_length,
83 double *data, long length);
84
90extern spBool spSeekPlugin(spPlugin *plugin, spLong pos);
91
97extern spLong spGetPluginTotalLength(spPlugin *plugin);
98
99#if defined(MACOS)
100#pragma import off
101#endif
102
103#ifdef __cplusplus
104} /* Close scope of 'extern "C"' declaration */
105#endif
106
107#endif /* __SPINPUTPLUGIN_H */
spBool spSeekPlugin(spPlugin *plugin, spLong pos)
long spReadPluginDoubleWeighted(spPlugin *plugin, double *data, long length, double weight)
spLong spGetPluginTotalLength(spPlugin *plugin)
long spReadPluginDouble(spPlugin *plugin, double *data, long length)
long spReadPlugin(spPlugin *plugin, void *data, long length)
long spReadPluginInByte(spPlugin *plugin, void *data, long data_size)
int spBool