没有ASIO论坛,只好发在这儿了。SDK手册正在翻译中。感兴趣的朋友可以先看英文版的。
http://raido.huzhoucity.com/asiosdk2.rar
Asio驱动类
class AsioDriver
{
public:
AsioDriver();
~AsioDriver();
ASIOBool init(void *);
void getDriverName(char *name);
long getDriverVersion();
void getErrorMessage(char *string);
ASIOError start();
ASIOError stop();
ASIOError getChannels(long *numInputChannels, long *numOutputChannels);
ASIOError getLatencies(long *inputLatency, long *outputLatency);
ASIOError getBufferSize(long *minSize, long *maxSize, long *preferredSize, long *granularity);
ASIOError canSampleRate(ASIOSampleRate sampleRate);
ASIOError getSampleRate(ASIOSampleRate *sampleRate);
ASIOError setSampleRate(ASIOSampleRate sampleRate);
ASIOError getClockSources(ASIOClockSource *clocks, long *numSources);
ASIOError setClockSource(long reference);
ASIOError getSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp);
ASIOError getChannelInfo(ASIOChannelInfo *info);
ASIOError createBuffers(ASIOBufferInfo *bufferInfos, long numChannels, long bufferSize, ASIOCallbacks *callbacks);
ASIOError disposeBuffers();
ASIOError controlPanel();
ASIOError future(long selector,void *opt);
ASIOError outputReady();
};
也就百来个函数嘛。有VC高手吗?来支持一下吧。