spAudio
|
A class to handle plugin-based input from an audio file. More...
#include <sp/spInputPlugin.h>
Related Symbols | |
(Note that these are not member symbols.) | |
long | spReadPlugin (spPlugin *plugin, void *data, long length) |
long | spReadPluginInByte (spPlugin *plugin, void *data, long data_size) |
long | spReadPluginDoubleWeighted (spPlugin *plugin, double *data, long length, double weight) |
long | spReadPluginDouble (spPlugin *plugin, double *data, long length) |
spBool | spSeekPlugin (spPlugin *plugin, spLong pos) |
spLong | spGetPluginTotalLength (spPlugin *plugin) |
Related Symbols inherited from spOutputPlugin | |
long | spWritePlugin (spPlugin *plugin, void *data, long length) |
long | spWritePluginInByte (spPlugin *plugin, void *data, long data_size) |
long | spWritePluginDoubleWeighted (spPlugin *plugin, double *data, long length, double weight) |
long | spWritePluginDouble (spPlugin *plugin, double *data, long length) |
char * | xspFindRelatedPluginFile (const char *plugin_name) |
char * | xspFindSuitablePluginFileWithPriority (spPluginDeviceType device_type, const char *filename, const char *mode, int *current_priority) |
char * | xspFindSuitablePluginFile (spPluginDeviceType device_type, const char *filename, const char *mode) |
spPlugin * | spOpenFilePlugin (const char *plugin_name, const char *filename, const char *mode, spPluginDeviceType device_type, spWaveInfo *wave_info, spSongInfo *song_info, spPluginOpenCallback call_func, void *call_data, spPluginError *error) |
spPlugin * | spOpenFilePluginAuto (const char *plugin_name, const char *filename, const char *mode, spPluginDeviceType device_type, spWaveInfo *wave_info, spSongInfo *song_info, spPluginOpenCallback call_func, void *call_data, spPluginError *error) |
spPlugin * | spOpenFilePluginArg (const char *plugin_name, const char *filename, const char *mode, spPluginDeviceType device_type, spWaveInfo *wave_info, spSongInfo *song_info, int argc, char **argv, spPluginError *error) |
spPlugin * | spOpenFilePluginArgAuto (const char *plugin_name, const char *filename, const char *mode, spPluginDeviceType device_type, spWaveInfo *wave_info, spSongInfo *song_info, int argc, char **argv, spPluginError *error) |
spBool | spCloseFilePlugin (spPlugin *plugin) |
A class to handle plugin-based input from an audio file.
Actually, spInputPlugin is not a class. You can handle this by using spPlugin type typedefed by typedef struct _spPlugin spPlugin;
.
|
related |
Read data from a file by using a plugin. The difference from spReadPluginInByte() is how to specify the size of data.
[in] | plugin | spPlugin pointer obtained by spOpenFilePlugin() . |
[out] | data | Data buffer to hold read data. The type of data depends on bits/sample of data; short for 8/16 bits, long for 24/32 bits, and double for 64 bits. |
[in] | length | The length of data . Note that this length is not identical to duration in points. |
length
if successful.
|
related |
Read data from a file by using a plugin. The difference from spReadPlugin() is how to specify the size of data.
[in] | plugin | spPlugin pointer obtained by spOpenFilePlugin() . |
[out] | data | Data buffer to hold read data. The type of data depends on bits/sample of data; short for 8/16 bits, long for 24/32 bits, and double for 64 bits. |
[in] | data_size | The size of data in bytes. |
data_size
if successful.
|
related |
Read data from a file by using a plugin. The value of the data must be basically from -1 to 1 inclusive. The difference from spReadPluginInByte() is how to specify the size of data.
[in] | plugin | spPlugin pointer obtained by spOpenFilePlugin() . |
[out] | data | Data buffer to hold read data. The type of data depends on bits/sample of data; short for 8/16 bits, long for 24/32 bits, and double for 64 bits. |
[in] | length | The length of data . Note that this length is not identical to duration in points. |
[in] | weight | This value is multiplied to the data after reading. |
length
if successful.
|
related |
Read data from a file by using a plugin. The value of the data must be basically from -1 to 1 inclusive. The difference from spReadPluginInByte() is how to specify the size of data.
[in] | plugin | spPlugin pointer obtained by spOpenFilePlugin() . |
[out] | data | Data buffer to hold read data. The type of data depends on bits/sample of data; short for 8/16 bits, long for 24/32 bits, and double for 64 bits. |
[in] | length | The length of data . Note that this length is not identical to duration in points. |
length
if successful. Move the position pointer to the specified position.
[in] | plugin | spPlugin pointer obtained by spOpenFilePlugin() . |
[in] | pos | Offset time in points. |
SP_TRUE | Success |
SP_FALSE | Failure |
|
related |
Get the total duration of the file by using a plugin. Note that the function call for some file formats returns always 0.
[in] | plugin | spPlugin pointer obtained by spOpenFilePlugin() . |