2

我最近开始学习很多关于核心音频的知识,但我只是不了解公共实用程序类是什么以及如何使用它们

4

1 回答 1

0

几个 Apple 示例项目使用这些,搜索:aurioTouch2 或 ConvertFile

这些“CoreAudio 实用程序类”包括:

CADebugMacros.h
CADebugPrintf.h
CAMath.h
CAStreamBasicDescription.cpp
CAStreamBasicDescription.h
CAXException.cpp
CAXException.h

另外 - 有两本非常有用的书:

Chris Adamson 的《Learning Core Audio》 开始由 Apress 出版的 iPhone 游戏开发

通常,这些实用程序类可以简化故障排除/显示错误消息

这是 CAStreamBasicDescription.h 的摘录

//=============================================================================
//  CAStreamBasicDescription
//
//  This is a wrapper class for the AudioStreamBasicDescription struct.
//  It adds a number of convenience routines, but otherwise adds nothing
//  to the footprint of the original struct.
//=============================================================================

严格来说,您根本不需要这些实用程序。如果您查看上述 Learning CA 书籍的在线源代码项目,Adamson 会根据需要推出自己的 consise 替代品。

于 2012-09-18T17:03:52.597 回答