VC2008编译 配置 PortAudio

本文档详细介绍了如何使用Visual Studio 2008编译PortAudio源代码,并通过集成ASIO SDK来实现对ASIO音频设备的支持。此外,还提供了如何正确配置库文件及在应用程序中使用相关DLL的基本步骤。


一:编译:

我从svn直接Checkout一份PortAudio源码,用VC2008打开。

从网上下载解压ASIO+SDK2.zip,将ASIOSDK2重命名为ASIOSDK,复制到PortAudio\trunk\src\hostapi\asio目录中;

设置相对路径;

这是就可以正常编译了。


注:在windows上编译各种多媒体音视频库,一般而言自然是要配置directX了,这个就不说了,网上很多。


二:配置

和一般的库配置没有什么区别,头文件,和库文件。

写程序的时候把dll文件放到程序目录中。

ASIO 2.3 SDK Contents --------------------- readme.txt - this file changes.txt - contains change information between SDK releases ASIO SDK 2.3.pdf - ASIO SDK 2.3 specification Steinberg ASIO Licensing Agreement.pdf - Licencing Agreement common: asio.h - ASIO C definition iasiodrv.h - interface definition for the ASIO driver class asio.cpp - asio host interface (not used on Mac) asiodrvr.h asiodrvr.cpp - ASIO driver class base definition combase.h combase.cpp - COM base definitions (PC only) dllentry.cpp - DLL functions (PC only) register.cpp - driver self registration functionality wxdebug.h debugmessage.cpp - some debugging help host: asiodrivers.h asiodrivers.cpp - ASIO driver managment (enumeration and instantiation) ASIOConvertSamples.h ASIOConvertSamples.cpp - sample data format conversion class ginclude.h - platform specific definitions host/pc: asiolist.h asiolist.cpp - instantiates an ASIO driver via the COM model host/sample: hostsample.cpp - a simple console app which shows ASIO hosting hostsample.dsp - MSVC++ 5.0 project hostsample.vcproj - Visual Studio 2005 project (32 and 64 bit targets) driver/asiosample: asiosmpl.h asiosmpl.cpp - ASIO 2.0 sample driver wintimer.cpp - bufferSwitch() wakeup thread (Windows) asiosample.def - Windows DLL module export definition mactimer.cpp - bufferSwitch() wakeup thread (Macintosh) macnanosecs.cpp - Macintosh system reference time makesamp.cpp - Macintosh driver object instantiation driver/asiosample/asiosample: asiosample.dsp - MSVC++ 5.0 project asiosample.vcproj - Visual Studio 2005 project (32 and 64 bit targets)
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

chinabinlang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值