gpt4 book ai didi

iphone - 如何降低 iphone 的 sdk Audioqueue 上的声音?

转载 作者:搜寻专家 更新时间:2023-10-30 20:23:42 24 4
gpt4 key购买 nike

我正在使用 Aran Mulhollan 的 RemoteIOPlayer,在 SDK iphone 中使用音频队列。我可以毫无问题地: - 添加两个信号来混合声音 - 通过乘以我从 wav 文件中获得的 UInt32 来增加音量

但是所有其他操作都会给我扭曲和失真的声音,尤其是我无法分割信号。我似乎无法弄清楚我做错了什么,除法的实际结果似乎还不错;声音/信号处理的某些方面显然是在躲避我:)

感谢任何帮助!

最佳答案

你试过这样的事情吗?

- (void)setQueue:(AudioQueueRef)ref toVolume:(float)newValue {
OSStatus rc = AudioQueueSetParameter(ref, kAudioQueueParam_Volume, newValue);
if (rc) {
NSLog(@"AudioQueueSetParameter returned %d when setting the volume.\n", rc);
}
}

关于iphone - 如何降低 iphone 的 sdk Audioqueue 上的声音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1540380/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com