ACGJUN的专栏

Audio & Video Starting Point

Multimedia technologies in iOS let you access the sophisticated audio and video capabilities of iPhone, iPad, and iPod touch. Specialized classes let you easily add basic features such as iPod library playback and movie capture, while rich multimedia APIs support advanced solutions.

iOS上的多媒体技术可以让你让你访问iPhone,iPad和iPod touch上的复杂的音频和视频。专门的类库 让你轻松添加基本特性如iPod图书馆音乐播放、和电影捕获,并且丰富的多媒体api提供了更多的先进的解决方案。

选择你需要的技术

Choose the right technology for your needs:

To play the audio items in a user’s iPod library, or to play local or streamed movies, use the Media Player framework. Classes in this framework automatically support sending audio and video to AirPlay devices such as Apple TV.

播放用户iPod图书馆里的音频,或者播放本地或流电影,使用媒体播放器框架。在这个框架里的类 提供发送 音频和视频 到 AirPlay devices (如苹果电视)的 功能。

To easily add picture or movie capture to your app, employ dedicated classes and functions from theUIKit framework.

想要轻松添加图片或影片到你的应用程序,使用UIKit框架中相关的类和函数。

For basic audio recording and playback, including stereo panning, synchronization, and metering, use the audio classes from theAV Foundation framework.

基本的音频录制和播放, 包括立体平移、同步、和计量,使用 AV Foundation framework中的 audio classes 。

To add high-performance positional audio playback to your OpenGL-based game or other app, take advantage of the open-source OpenAL (Open Audio Library) API.

添加高性能音频播放 到你的OpenGL-based游戏或其他应用程序,利用开源OpenAL(打开音频库)的API。

To work directly with audio and video data—for high performance or advanced solutions such as VoIP, streaming, virtual music instruments, or MIDI (Musical Instrument Digital Interface)—use theAV Foundation framework, the Assets Library framework, thevarious Core Audio frameworks (including the Core Audio, Audio Toolbox, and Audio Unit frameworks), and theCore MIDI framework.

工作直接与 音频 和视频数据 相关 ,追求 高性能和先进解决方案如VoIP、流媒体、虚拟乐器,或MIDI(乐器数字接口) 使用 AV的基础框架,资产库框架,各种音频核心框架(包括核心音频,音频工具箱和音频单元框架),和MIDI核心框架。

Get Up and Running

Become Proficient in Audio Development

Become Proficient in Video Development

行动起来

成为精通音频开发者

成为精通视频开发者

Get Up and Running

Familiarize yourself withiOS audio development by checking out these resources:

熟悉iOS音频开发 审查 以下资源:

PS:(注意这里一定要看,看完指南,还要看参考)

Read Using Audio in Multimedia Programming Guide to learn about audio development for iOS devices. Make sure to understand the importance of audio session objects as introduced in The Basics:Audio Codecs, Supported Audio Formats, andAudio Sessions in Multimedia Programming Guide.

阅读媒体编程指南中的Using Audio了解iOS设备音频开发。确保理解其中的音频会话对象的重要性, 基于编程指南基础里面介绍的 基本的音频编解码器,支持的音频格式和 音频会话 。

PS:下面这几个是实例

View the avTouch sample code project, which shows how to play sounds with theAVAudioPlayer class; the SpeakHere project, which demonstrates basic recording and playback; and theAudio UI Sounds (SysSound) project, which demonstrates how to invoke vibration and play alerts and user-interface sound effects.

avTouch,显示了如何使用AVAudioPlayer类播放声音;SpeakHere,演示了录音 和 回放 ,Audio UI Sounds (SysSound) ,它演示了如何调用振动和警报和用户界面音效。

Download and explore theAddMusic sample code project to see a simple demonstration of how to add iPod library playback to your app.

AddMusic项目,你会看到一个简单的示例代码演示了如何将iPod播放库添加到您的应用程序。

Read MPVolumeView Class Reference to learn how to quickly add AirPlay capability to your app.

阅读MPVolumeView类,学习如何快速把AirPlay功能添加到您的应用程序。

Get up and running with iOS video development with these resources:

利用以下资源 在 iOS音频开发中行动起来

Become Proficient in Audio Development

成为音频开发专家

Gain a complete understanding of audio session objects, and how they determine your app’s audio behavior, by readingAudio Session Programming Guide. Also be sure to read Sound , which explains how your app should handle sound to meet user expectations.

完全理解 音频会话对象 ,以及它们如何确定应用程序音频的行为,通过阅读音频会话编程指南。一定要读 Sound 这一部分,它说明了你的应用程序应该如何处理声音以满足用户的期望。

收敛自己的脾气,偶尔要刻意沉默,

ACGJUN的专栏

相关文章:

你感兴趣的文章:

标签云: