通过互联网从 QTMovie 发送音频
我有一个简单的音频播放应用程序,它使用 QTMovie 来实现它的一些功能。我还在开发一个支持以太网的小型板来传输 MP3 或 PCM 数据。
有什么方法可以“抓取” QTMovie 输出的内容,将其格式化为字节数组并通过以太网发送到特定 IP? iTunes 设法通过 AirPlay 做到这一点,因此有某种方法可以做到这一点。
感谢您的任何答复!
I have a simple audio playing app that uses QTMovie for a few of it's features. I'm also developing a little ethernet-enabled board to stream MP3 or PCM data to.
Is there any way of 'grabbing' what QTMovie is outputting, format it into an array of bytes and send it over ethernet to a specific IP? Somehow iTunes manages to do this with AirPlay, so there's some sort of way to do this.
Thanks for any answers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想看看 Rogue Ameoba 机翼等现成产品:
http:// /www.rogueamoeba.com/airfoil/mac/
但如果你真的想亲自动手开发一些东西,看起来QTMovie只是输出到Core Audio,你可以设置哪个设备:
http://developer.apple.com/library/mac /#qa/qa1578/_index.html
关于拦截核心音频设备的程序如何执行此操作的主题有一些问答:
用于捕获音频的代码示例Mac 中的 Cocoa 并保存到文件?
There are off-the-shelf products like Rogue Ameoba's airfoil that you might want to look at:
http://www.rogueamoeba.com/airfoil/mac/
But if you really want to get your hands dirty and develop something yourself, it looks like QTMovie just outputs to Core Audio, and you can set which device:
http://developer.apple.com/library/mac/#qa/qa1578/_index.html
There's a bit of Q&A on the topic of how programs that intercept Core Audio devices do that:
Code sample for capturing audio from a Mac in Cocoa and saving to file?