在iOS上使用OpenAL进行混响

在iOS上使用OpenAL进行混响

本文介绍了在iOS上使用OpenAL进行混响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS上使用OpenAL可以进行混响吗?有人有任何代码片段可以实现此效果吗?我知道它不包含在iOS的OpenAL库中,但我认为仍然可以对其进行编程.

Is there any possible way to do reverb using OpenAL on iOS? Anyone have any code snippets to achieve this effect? I know it's not included in the OpenAL library for iOS, but I would think there's still a way to program it in.

谢谢.

推荐答案

OpenAL(自iOS 5.0起)现已支持混响.您可以在ObjectAL项目上查看示例实现:

Reverb is now natively supported in OpenAL (as of iOS 5.0). You can view a sample implementation on the ObjectAL project:

https://github.com/kstenerud/ObjectAL-for-iPhone

只需从此存储库中获取最新资源,加载"ObjectAL.xcodeproj",然后在任何iOS 5.0设备上运行ObjectALDemo目标(也应在模拟器上运行).

Just grab the most recent source from this repository, load "ObjectAL.xcodeproj" and run the ObjectALDemo target on any iOS 5.0 device (should also work on the simulator).

实际实现位于两个地方:

The actual implementation lies in two places:

  • https://github.com/kstenerud/ObjectAL-for-iPhone/blob/master/ObjectAL/ObjectAL/OpenAL/ALListener.m
  • https://github.com/kstenerud/ObjectAL-for-iPhone/blob/master/ObjectAL/ObjectAL/OpenAL/ALSource.m

在这些文件(和相应的头文件)中查找单词"reverb",以找到用于设置和控制混响效果的OpenAL属性和常量的名称.

Look for the word 'reverb' in these files (and the corresponding header files) to find the name of the OpenAL properties and constants used to set and control the reverb effect.

祝你好运!

这篇关于在iOS上使用OpenAL进行混响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 16:51