哪种格式支持与播放视频音频文件? [英] Which format support the audio file with a playing video?

查看:339
本文介绍了哪种格式支持与播放视频音频文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在播放视频,并在后台我要播放的音频文件,如果我这样做音频不打它的声音,它只是播放视频是我使用的.mp3的音频扩展问题, .MP4的视频。

i am playing the video and in the background i have to play the audio file and if i do this audio is not playing its sound as it just play video is it a extension problem i am using the .mp3 for the audio and .mp4 for the video .

我们如何能做到这一点,我们必须发挥simultanisouly的。无论文件
balraj维尔马

how can we do this we have to play simultanisouly .both the file balraj verma

推荐答案

有一个看看这个:
<一href=\"http://developer.apple.com/iphone/library/documentation/MusicAudio/Conceptual/CoreAudioOverview/CoreAudioEssentials/CoreAudioEssentials.html#//apple_ref/doc/uid/TP40003577-CH10-SW67\" rel=\"nofollow\">http://developer.apple.com/iphone/library/documentation/MusicAudio/Conceptual/CoreAudioOverview/CoreAudioEssentials/CoreAudioEssentials.html#//apple_ref/doc/uid/TP40003577-CH10-SW67

同时播放多个声音,创建一个音频播放队列对象的每个声音。对于每一个音频队列调度的声音第一个缓冲区使用AudioQueueEnqueueBufferWithParameters功能同时启动。

"To play multiple sounds simultaneously, create one playback audio queue object for each sound. For each audio queue, schedule the first buffer of audio to start at the same time using the AudioQueueEnqueueBufferWithParameters function.

当你播放声音同时在iPhone或iPod touch的音频格式是至关重要的。这是因为在iPhone OS中某些COM pressed格式的播放采用了高效的硬件codeC。只有以下格式之一的单个实例可以同时在设备上播放:

Audio format is critical when you play sounds simultaneously on iPhone or iPod touch. This is because playback of certain compressed formats in iPhone OS employs an efficient hardware codec. Only a single instance of one of the following formats can play on the device at a time:

AAC
ALAC(苹果无损)
MP3

AAC ALAC (Apple Lossless) MP3"

这篇关于哪种格式支持与播放视频音频文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆