![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
宏定义 | |
#define | SONIC_MIN_PITCH 65 |
#define | SONIC_MAX_PITCH 400 |
#define | SONIC_AMDF_FREQ 4000 |
类型定义 | |
typedef struct sonicStreamStruct * | sonicStream |
函数 | |
sonicStream | sonicCreateStream (int sampleRate, int numChannels) |
void | sonicDestroyStream (sonicStream stream) |
int | sonicWriteFloatToStream (sonicStream stream, float *samples, int numSamples) |
int | sonicWriteShortToStream (sonicStream stream, short *samples, int numSamples) |
int | sonicWriteUnsignedCharToStream (sonicStream stream, unsigned char *samples, int numSamples) |
int | sonicReadFloatFromStream (sonicStream stream, float *samples, int maxSamples) |
int | sonicReadShortFromStream (sonicStream stream, short *samples, int maxSamples) |
int | sonicReadUnsignedCharFromStream (sonicStream stream, unsigned char *samples, int maxSamples) |
int | sonicFlushStream (sonicStream stream) |
int | sonicSamplesAvailable (sonicStream stream) |
float | sonicGetSpeed (sonicStream stream) |
void | sonicSetSpeed (sonicStream stream, float speed) |
float | sonicGetPitch (sonicStream stream) |
void | sonicSetPitch (sonicStream stream, float pitch) |
float | sonicGetRate (sonicStream stream) |
void | sonicSetRate (sonicStream stream, float rate) |
float | sonicGetVolume (sonicStream stream) |
void | sonicSetVolume (sonicStream stream, float volume) |
int | sonicGetChordPitch (sonicStream stream) |
void | sonicSetChordPitch (sonicStream stream, int useChordPitch) |
int | sonicGetQuality (sonicStream stream) |
void | sonicSetQuality (sonicStream stream, int quality) |
int | sonicGetSampleRate (sonicStream stream) |
int | sonicSetSampleRate (sonicStream stream, int sampleRate) |
int | sonicGetNumChannels (sonicStream stream) |
int | sonicSetNumChannels (sonicStream stream, int numChannels) |
void | sonicCleanStream (sonicStream stream) |
int | sonicChangeFloatSpeed (float *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) |
int | sonicChangeShortSpeed (short *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) |
#define SONIC_AMDF_FREQ 4000 |
#define SONIC_MAX_PITCH 400 |
#define SONIC_MIN_PITCH 65 |
typedef struct sonicStreamStruct* sonicStream |
int sonicChangeFloatSpeed | ( | float * | samples, |
int | numSamples, | ||
float | speed, | ||
float | pitch, | ||
float | rate, | ||
float | volume, | ||
int | useChordPitch, | ||
int | sampleRate, | ||
int | numChannels | ||
) |
int sonicChangeShortSpeed | ( | short * | samples, |
int | numSamples, | ||
float | speed, | ||
float | pitch, | ||
float | rate, | ||
float | volume, | ||
int | useChordPitch, | ||
int | sampleRate, | ||
int | numChannels | ||
) |
void sonicCleanStream | ( | sonicStream | stream | ) |
sonicStream sonicCreateStream | ( | int | sampleRate, |
int | numChannels | ||
) |
void sonicDestroyStream | ( | sonicStream | stream | ) |
int sonicFlushStream | ( | sonicStream | stream | ) |
int sonicGetChordPitch | ( | sonicStream | stream | ) |
int sonicGetNumChannels | ( | sonicStream | stream | ) |
float sonicGetPitch | ( | sonicStream | stream | ) |
int sonicGetQuality | ( | sonicStream | stream | ) |
float sonicGetRate | ( | sonicStream | stream | ) |
int sonicGetSampleRate | ( | sonicStream | stream | ) |
float sonicGetSpeed | ( | sonicStream | stream | ) |
float sonicGetVolume | ( | sonicStream | stream | ) |
int sonicReadFloatFromStream | ( | sonicStream | stream, |
float * | samples, | ||
int | maxSamples | ||
) |
int sonicReadShortFromStream | ( | sonicStream | stream, |
short * | samples, | ||
int | maxSamples | ||
) |
int sonicReadUnsignedCharFromStream | ( | sonicStream | stream, |
unsigned char * | samples, | ||
int | maxSamples | ||
) |
int sonicSamplesAvailable | ( | sonicStream | stream | ) |
void sonicSetChordPitch | ( | sonicStream | stream, |
int | useChordPitch | ||
) |
int sonicSetNumChannels | ( | sonicStream | stream, |
int | numChannels | ||
) |
void sonicSetPitch | ( | sonicStream | stream, |
float | pitch | ||
) |
void sonicSetQuality | ( | sonicStream | stream, |
int | quality | ||
) |
void sonicSetRate | ( | sonicStream | stream, |
float | rate | ||
) |
int sonicSetSampleRate | ( | sonicStream | stream, |
int | sampleRate | ||
) |
void sonicSetSpeed | ( | sonicStream | stream, |
float | speed | ||
) |
void sonicSetVolume | ( | sonicStream | stream, |
float | volume | ||
) |
int sonicWriteFloatToStream | ( | sonicStream | stream, |
float * | samples, | ||
int | numSamples | ||
) |
int sonicWriteShortToStream | ( | sonicStream | stream, |
short * | samples, | ||
int | numSamples | ||
) |
int sonicWriteUnsignedCharToStream | ( | sonicStream | stream, |
unsigned char * | samples, | ||
int | numSamples | ||
) |