开发者

using QTkit for recording audio

It looks like using core audio to record audio is overly complicated. While QTkit is basic and down to earth开发者_运维技巧 However. All of the examples I have see integrate video and audio together. Does some one have or know an example of using QTkit for recording audio?


Here is an example of using QTKit for recording audio.


In order to capture audio only, you have to either select the default device that supports sounds, or disable video connection on muxed devices.

// Get the default sound capture device
QTCaptureDevice *theDefaultSoundDevice = [QTCaptureDevice defaultInputDeviceWithMediaType: QTMediaTypeSound];

To learn how to disable connection on muxed devices, see the QTKit Application Programming Guide. The sample code in the guide shows how to disable audio, so you just have to disable video instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜