AUGraph和音频流(HTTP和ETS) [英] AUGraph and streaming audio (http and ets)

查看:521
本文介绍了AUGraph和音频流(HTTP和ETS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于AUGraph播放器(我需要均衡器)。播放器可以播放本地的音频文件。现在我想添加支持流音频。我可以用呢?任何非标准类像AVAssetReader(AVAssertReader不能播放流:(),或者任何人都知道它开LIB?谢谢。

I have player based on AUGraph (i need equalizer). Player can play local audio files. Now i want to add support stream audio. What i can use for it ? Anyone standart class like AVAssetReader (AVAssertReader can't play stream :( ), or maybe anyone know open lib for it ? Thanks.

推荐答案

由于蒸现在支持本机在AVPlayer,没有太多这是积极支持库。其中一个已经有一段时间了(我已经用它自己在过去)是马特·加拉格尔的AudioStreamer,的https:/ /github.com/mattgallagher/AudioStreamer ,或通阮StreamingKit, https://github.com/tumtumtum / StreamingKit

As steaming is now supported natively in AVPlayer, there aren't too libs which are actively supported. One which has been around for some time (i've used it myself in the past) is Matt Gallagher's AudioStreamer, https://github.com/mattgallagher/AudioStreamer, or Thong Nguyen StreamingKit, https://github.com/tumtumtum/StreamingKit

您可能要考虑的另一种方法是一个类似于苹果的AudioTapProcessor证明的实现。从本质上讲插入 MTAudioProcessingTap 到AVPlayer的管道引入了 kAudioUnitSubType_BandPassFilter AudioUnit。类似的方法可以用来引入的 kAudioUnitSubType_NBandEQ AudioUnit。

An alternative approach you might want to consider is an implementation similar to the one demonstrated in Apple's AudioTapProcessor. Essentially inserting an MTAudioProcessingTap into AVPlayer's pipeline to introduces a kAudioUnitSubType_BandPassFilter AudioUnit. A similar approach could be used to introduce an kAudioUnitSubType_NBandEQ AudioUnit.

这篇关于AUGraph和音频流(HTTP和ETS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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