1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #pragma once
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #include "reverb.h"
- typedef signed short SInt16;
- #if __LP64__
- typedef unsigned int UInt32;
- typedef signed int SInt32;
- #else
- typedef unsigned long UInt32;
- typedef signed long SInt32;
- #endif
- //#define UInt32 unsigned long
- //#define SInt16 short
- #define OSStatus int
- #define noErr 0
- //创建混响对象
- Reverb* createReverb();
- OSStatus deleteReverb(Reverb* pobj);
- //处理数据
- OSStatus simpleDelay1 (Reverb* pobj, //混响对象
- void *inRefCon, // scope reference
- UInt32 inNumberFrames, // number of frames to process
- SInt16 *sampleBuffer,//数据
- int samplingFreqHz,
- int channelNum);//是否双声道
- //设置属性
- OSStatus setReverbParem(Reverb* pobj,
- float drytime,
- float wettime,
- float dampness,
- float roomwidth,
- float roomsize);
- //获取属性
- OSStatus getReverbParem(Reverb* pobj,
- float* drytime,
- float* wettime,
- float* dampness,
- float* roomwidth,
- float* roomsize);
- #ifdef __cplusplus
- }
- #endif
|