循环通过CAF文件的样本 [英] Looping through the samples of CAF file

查看:181
本文介绍了循环通过CAF文件的样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以给我一个建议或示例,我如何循环通过CAF(核心音频格式)文件的样本?像取前1000个样本并将它们更改为0?

Could anyone give me a suggestion or an example of how I would loop through the samples of CAF (Core Audio Format) file? Like taking the first 1000 samples and changing them to 0?

像:

for(int i=0; i < numberOfSamples; i++)
{
    cafFile.sample[i] = methodThatUsesSampleValue(cafFile.sample[i]);
}

请注意:


  1. 我不需要这样做。不需要缓冲区等。

  2. 我想在C,C ++或Objective-C中执行此操作。

  3. 使用iOS平台上的代码。

任何帮助。

推荐答案

p>最近我偶然发现了惊人的OpenFrameWorks库: http://www.openframeworks.cc/about 我知道它在MacOS和iPhone上编译。在许多(!)其他库中,它提供了一个到rtAudio的接口: http:/ /www.music.mcgill.ca/~gary/rtaudio/index.html 。你可能想考虑也直接使用它。希望有所帮助。

Recently I stumbled over the amazing OpenFrameWorks library: http://www.openframeworks.cc/about And I know it compiles on MacOS and iPhone. Amongst many(!) other libs it come with an interface to rtAudio: http://www.music.mcgill.ca/~gary/rtaudio/index.html. You might want to consider also using that directly. Hope that helps.

这篇关于循环通过CAF文件的样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆