Core Audio Services
来源:互联网 发布:玩客云自动抢购软件 编辑:程序博客网 时间:2024/06/06 05:17
This chapter lists the services available in Core Audio. In iOS, you find these services arranged into the following frameworks: Audio Toolbox—Application-level services: files, streams, alerts, playback and recording. In iOS, includes audio session services. Audio Unit—Audio unit and audio codec services. AV Foundation—An Objective-C audio playback interface. IPhone OS only. Core Audio—Data types and, in Mac OS X, hardware services. OpenAL—Positional and low-latency audio services. Core Audio in Mac OS X includes those four frameworks and adds three more: Core Audio Kit—Audio unit user-interface services. Core MIDI—Application-level MIDI support. Core MIDI Server—MIDI server and driver support. For a framework-focused view of the header files in Core Audio, see the Appendix “Core Audio Frameworks.” The rest of this chapter presents a services-focused view of Core Audio—starting with services available in both iOS and Mac OS X. The services listed in this section are available in iOS 2.0 and Mac OS X v10.5. Audio Converter Services allows you to convert data between formats. This interface consists of the functions, data types, and constants declared in the Audio File services lets you read or write audio data to and from a file or buffer. You use it in conjunction with Audio Queue Services to record or play audio. In iOS and Mac OS X, Audio File Services consists of the functions, data types, and constants declared in the Audio File Stream services lets you parse audio file streams—that is, audio data for which you don’t necessarily have access to the entire file. You can also use it to parse file data from disk, although Audio File Services is designed for that purpose. Audio File Stream services returns audio data and metadata to your application via callbacks. which you typically then play back using Audio Queue Services. In iOS and Mac OS X, Audio File Stream Services consists of the functions, data types, and constants declared in the Audio Format Services lets you work with audio data format information. Other services, such as Audio File Services, have functions for this use as well. You use Audio Format Services when all you want to do is obtain audio data format information. In Mac OS X, you can also use this service to get system characteristics such as the available sample rates for encoding. Audio Format Services consists of the functions, data types, and constants declared in the Audio Processing Graph Services lets you create and manipulate audio processing graphs in your application. In iOS and in Mac OS X, it consists of the functions, data types, and constants declared in Audio Queue Services lets you play or record audio. It also lets you pause and resume playback, perform looping, and synchronize multiple channels of audio. In iOS and Mac OS X, Audio Queue Services consists of the functions, data types, and constants declared in the Audio Unit Services lets you load and use audio units in your application. In iOS, Audio Unit Services comprises the functions, data types, and constants declared in the following header files in Mac OS X adds to these the following header files from OpenAL is an open-source positional audio technology designed for use in game applications. iOS and Mac OS X have implementations of the OpenAL 1.1 specification. You find its headers in the following header files in the OpenAL framework: al.h alc.h In iOS you have these additional header files: In Mac OS X you have this additional header file: System Sound Services lets you play short sounds and alerts. On the iPhone, it lets you invoke vibration. System Sound Services consists of a subset of the functions, data types, and constants declared in the The services listed in this section are available in iOS only. Audio Session Services lets you manage audio sessions in your application—coordinating the audio behavior in your application with background applications on an iPhone or iPod touch. Audio Session Services consists of a subset of the functions, data types, and constants declared in the The The services listed in this section are available in Mac OS X only. Audio Codec Services allows you to convert data between formats. This interface consists of the functions, data types, and constants declared in the Audio Hardware Services provides a small, lightweight interface to some of the important features of the Audio HAL (hardware abstraction layer). Audio Hardware Services consists of a subset of the functions, data types, and constants declared in the Core Audio Clock Services provides a reference clock that you can use to synchronize applications and devices. This service consists of the functions, data types, and constants declared in the Core Audio in Mac OS X supports MIDI through Core MIDI Services, which consists of the functions, data types, and constants declared in the following header files in Core MIDI Server Services lets MIDI drivers communicate with the Mac OS X MIDI server. This interface consists of the functions, data types, and constants declared in the following header files in about extended audio file services In many cases, you use Extended Audio File Services, which provides the simplest interface for reading and writing audio data. Files read using this API are automatically uncompressed and/or converted into linear PCM format, which is the native format for audio units. Similarly, you can use one function call to write linear PCM audio data to a file in a compressed or converted format. “Supported Audio File and Data Formats in Mac OS X” lists the file formats that Core Audio supports by default. Some formats have restrictions; for example, by default, Core Audio can read, but not write, MP3 files. Core Audio in Mac OS X uses a hardware abstraction layer (HAL) to provide a consistent and predictable interface for applications to deal with hardware. Each piece of hardware is represented by an audio device object (type HAL Services consists of the functions, data types, and constants declared in the following header files in Most developers will find that Apple’s AUHAL unit serves their hardware interface needs, so they don’t have to interact directly with the HAL Services. The AUHAL is responsible for transmitting audio data, including any required channel mapping, to the specified audio device object. For more information about using the AUHAL unit and other output units, see “Interfacing with Hardware in Mac OS X.” Music Player Services, available in Mac OS X, allows you to arrange and play a collection of MIDI music tracks. It consists of the functions, data types, and constants declared in the header file Services Available in iOS and Mac OS X
Audio Converter Services
AudioConverter.h
header file in AudioToolbox.framework
.Audio File Services
AudioFile.h
header file in AudioToolbox.framework
.Audio File Stream Services
AudioFileStream.h
header file inAudioToolbox.framework
.Audio Format Services
AudioFormat.h
header file inAudioToolbox.framework
.Audio Processing Graph Services
AUGraph.h
header file in AudioToolbox.framework
.Audio Queue Services
AudioQueue.h
header file in AudioToolbox.framework
.Audio Unit Services
AudioUnit.framework
:AUComponent.h
AudioComponent
.h (iOS only)AudioOutputUnit.h
AudioUnitParameters.h
AudioUnitProperties.h
AudioUnit.framework
and AudioToolbox.framework
:AUCocoaUIView.h
AudioUnitCarbonView.h
AudioUnitUtilities.h
(in AudioToolbox.framework
)LogicAUProperties
.hMusicDevice.h
OpenAL
oalMacOSX_OALExtensions.h
oalStaticBufferExtension.h
MacOSX_OALExtensions.h
System Sound Services
AudioServices.h
header file in AudioToolbox.framework
.Services Available in iOS Only
Audio Session Services
AudioServices.h
header file inAudioToolbox.framework
.The AVAudioPlayer Class
AVAudioPlayer
class provides a simple Objective-C interface for playing sounds. If your application does not require stereo positioning or precise synchronization, and if you are not playing audio captured from a network stream, Apple recommends that you use this class for playback. This class is declared in theAVAudioPlayer.h
header file in AVFoundation.framework
.Services Available in Mac OS X Only
Audio Codec Services
AudioCodec.h
header file in AudioUnit.framework
.AudioCodec.h
(located in AudioUnit.framework
).Audio Hardware Services
AudioServices.h
header file in AudioToolbox.framework
.Core Audio Clock Services
CoreAudioClock.h
header file in AudioToolbox.framework
.Core MIDI Services
CoreMIDI.framework
:MIDIServices.h
MIDISetup.h
MIDIThruConnection.h
MIDIDriver.h
Core MIDI Server Services
CoreMIDIServer.framework
:CoreMIDIServer.h
MIDIDriver.h
Extended Audio File Services
Hardware Abstraction Layer (HAL) Services
AudioDevice
) in the HAL. Applications can query the audio device object to obtain timing information that can be used for synchronization or to adjust for latency.CoreAudio.framework
:AudioDriverPlugin.h
AudioHardware.h
AudioHardwarePlugin.h
CoreAudioTypes.h
(Contains data types and constants used by all Core Audio interfaces)HostTime.h
Music Player Services
MusicPlayer.h
in AudioToolbox.framework
.
- Core Audio Services
- core audio
- Audio Queue Services
- Audio Session Services Reference
- core audio introduction
- Core Audio Frameworks
- Core Audio API
- Core Audio服务
- Core Audio概要
- Core Audio Overview
- core audio 音频捕获
- Audio Queue Services Programming Guide
- Core Services 层
- Core Services 层
- 解析Core Services 层
- 解析Core Services 层
- Core Services 层
- Core Audio API Architectural Layers
- 曾经的梦想,我的努力
- 国嵌 Linux 开发软件安装
- 阅读优秀代码是提高开发人员修为的一种捷径
- 指针和数组
- CSDN上总是扣积分,下载失败
- Core Audio Services
- 数组名与数组名的地址
- AS3.0相关知识
- flex Cairgorm与J2EE实现的登录及问题
- Delphi WebBrowser 使滚动条滚动到底部
- 问题:在IE6中,在地址栏输入url和用A的href=url有区别吗,地址栏输入的url可以加载document.write的数据,而A的href=rul则不能加载。
- linux命令
- mtk 10a gprs 网络
- C# TreeView控件中的nodemouseclick事件