你的位置:首页 > 软件开发 > 操作系统 > iOS音频开发之`AudioStreamBasicDescription`

iOS音频开发之`AudioStreamBasicDescription`

发布时间:2016-09-22 00:00:12
这个类提供了对于音频文件的描述An audio stream is a continuous series of data that represents a sound, such as a song.A channel is a discrete track of monop ...

这个类提供了对于音频文件的描述

  • An audio stream is a continuous series of data that represents a sound, such as a song.

  • A channel is a discrete track of monophonic audio. A monophonic stream has one channel; a stereo stream has two channels.

  • A sample is single numerical value for a single audio channel in an audio stream.

  • A frame is a collection of time-coincident samples. For instance, a linear PCM stereo sound file has two samples per frame, one for the left channel and one for the right channel.

  • A packet is a collection of one or more contiguous frames. A packet defines the smallest meaningful set of frames for a given audio data format, and is the smallest data unit for which time can be measured. In linear PCM audio, a packet holds a single frame. In compressed formats, it typically holds more; in some formats, the number of frames per packet varies.

  • The sample rate for a stream is the number of frames per second of uncompressed (or, for compressed formats, the equivalent in decompressed) audio.

首先,音频文件的产生是模拟信号->PCM以后的数字信号->压缩、编码以后的音频文件。

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:iOS音频开发之`AudioStreamBasicDescription`

关键词:IOS

IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。