【翻译】(84)JetPlayer
see
http://developer.android.com/guide/topics/media/jetplayer.html
原文见
http://developer.android.com/guide/topics/media/jetplayer.html
-------------------------------
JetPlayer
JetPlayer
-------------------------------
In this document
本文目录
* Playing JET content 播放JET内容
Key classes
关键类
JetPlayer
Related Samples
相关示例
JetBoy
See also
另见
JetCreator User Manual JetCreator用户手册
Android Supported Media Formats Android支持的媒体格式
Data Storage 数据存储
MediaPlayer MediaPlayer
-------------------------------
The Android platform includes a JET engine that lets you add interactive playback of JET audio content in your applications. You can create JET content for interactive playback using the JetCreator authoring application that ships with the SDK. To play and manage JET content from your application, use the JetPlayer class.
Android平台包含一个JET引擎,它让你在你的应用程序中添加JET音频内容的交互式回放。你可以使用停靠于SDK的JetCreator创作应用程序为交互式回放创建JET内容。为了从你的应用程序中播放和管理JET内容,请使用JetPlayer类。
-------------------------------
Playing JET content
播放JET内容
This section shows you how to write, set up and play JET content. For a description of JET concepts and instructions on how to use the JetCreator authoring tool, see the JetCreator User Manual. The tool is available on Windows, OS X, and Linux platforms (Linux does not support auditioning of imported assets like with the Windows and OS X versions).
这个章节向你展示如何编写,配置和播放JET内容。想获得JET概念的描述和如何使用JetCreator创作工具的指示,参见JetCreator用户手册。该工具在Windows,OS X和Linux平台上可用(Linux不支持像Windows和OS X版本那样试听导入的资源)(注:audition,试听,试音)。
Here's an example of how to set up JET playback from a .jet file stored on the SD card:
这里有一个如何从一个保存在SD卡上的.jet文件中配置JET回放的示例。
-------------------------------
JetPlayer jetPlayer = JetPlayer.getJetPlayer();
jetPlayer.loadJetFile("/sdcard/level1.jet");
byte segmentId = 0;
// queue segment 5, repeat once, use General MIDI, transpose by -1 octave
// 队列进节5,重复一次,使用通用MIDI,变换(注:待考)-1个八度
jetPlayer.queueJetSegment(5, -1, 1, -1, 0, segmentId++);
// queue segment 2
// 队列进节2
jetPlayer.queueJetSegment(2, -1, 0, 0, 0, segmentId++);
jetPlayer.play();
-------------------------------
The SDK includes an example application — JetBoy — that shows how to use JetPlayer to create an interactive music soundtrack in your game. It also illustrates how to use JET events to synchronize music and game logic. The application is located at JetBoy.
SDK包含一个示例应用程序——JetBoy——展示如何在你的游戏中使用JetPlayer创建一个交互式音乐音轨。它还展示如何使用JET事件来同步音乐和游戏逻辑。该应用程序位于JetBoy示例上。
Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.
除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。
Android 4.0 r1 - 16 Apr 2012 17:06
-------------------------------
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
此页部分内容,是基于Android开源项目所创建和共享的工作,并且根据知识共享2.5署名许可证描述的条款来使用的修改版。
(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:
* ソフトウェア技術ドキュメントを勝手に翻訳
http://www.techdoctranslator.com/android
* Ley's Blog
http://leybreeze.com/blog/
* 农民伯伯
http://www.cnblogs.com/over140/
* Android中文翻译组
http://androidbox.sinaapp.com/
)