如何降低对iPhone的SDK Audioqueue声音? [英] How to lower sound on the iphone's sdk Audioqueue?

查看:201
本文介绍了如何降低对iPhone的SDK Audioqueue声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是阿兰MulhollanRemoteIOPlayer,使用SDK iphone audioqueues。
我可以没有问题:
  - 增加了两个信号混合的声音
  - 由UInt32的相乘增加音量我从wav文件获得

I'm using Aran Mulhollan' RemoteIOPlayer, using audioqueues in the SDK iphone. I can without problems: - adding two signals to mix sounds - increasing sound volume by multiplying the UInt32 I get from the wav files

但其它的操作让我扭曲和失真的声音,尤其是我不能分割的信号。我似乎无法找出什么我做错了,该师的实际结果似乎罚款;声音/信号处理的某些方面显然必须要躲避我:)

BUT every other operation gives me warped and distorted sound, and in particular I can't divide the signal. I can't seem to figure out what I'm doing wrong, the actual result of the division seems fine; some aspect of sound / signal processing must obviously be eluding me :)

任何帮助AP preciated!

Any help appreciated !

推荐答案

所有code你提到不使用AudioQueues首先,它使用AudioUnits。使用混频器单元是内置在iPhone混合音频的最好方法,有你的此处。除此之外,我会检查你有正确的数据类型的code操作系统。你无符号整数试图当你应该使用那些签署您的操作?经常产生扭曲的结果(可以理解)

First of all the code you mention does not use AudioQueues, it uses AudioUnits. The best way to mix audio in the iphone is using the mixer units that are inbuilt, there is some code on the site you downloaded your original example from here. Other than that what i would check in your code os that you have the correct data type. Are you trying your operations on Unsigned ints when you should be using signed ones? often that produces warped results (understandably)

这篇关于如何降低对iPhone的SDK Audioqueue声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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