录音/制作/创作 吉他 扩声技术 视频技术 作品展示 生活 信息 更多... | 音频应用专卖店

ASIO SDK 2 Asio驱动类

( 7 )
 
[收藏]

327
#1 02-6-27 11:58

ASIO SDK 2 Asio驱动类

没有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高手吗?来支持一下吧。

2338
#2 02-6-27 12:59
感动啊,中国应该多些收音机这样的好同志,中国的专业音频领域肯定大有可为,至少比韩国不会差的

13895
#3 02-6-29 03:23
不会吧?ASIO 的 SDK 是公开的?

327
#4 02-6-29 08:58
当然啦。SDK早下到了,可以开发基于ASIO驱动的应用和ASIO驱动。以上类,包括他们的函数和方法,都是开发驱动的时候要用的。怎么样?少吧?呵呵。

这个SDK的确强大。

2338
#5 02-6-29 13:01
RADIO,你提供的下载怎么不能下了?

327
#6 02-6-29 14:13
可以的啊。实在不行就把自己C盘里搜索到hosts文件,没有的话创建一个,写上:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
202.101.177.167 www.huzhoucity.com
202.101.177.167 radio.huzhoucity.com
202.101.177.167 huzhoucity.com
202.101.177.167 mail.huzhoucity.com

2338
#7 02-6-29 15:12
你说的HOSTS文件是干吗用的,我还第一次听说呢

327
#8 02-6-29 15:47
本地的IP地址与主机的对应关系,相当于NS服务器。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

搜索