ZEN X-Fi2 ADK Programmer's Guide
ZEN X-Fi2 ADK Programmer's Guide
ZEN X-Fi2 ADK Programmer's Guide
Programmer's Guide
Version 1.02
COPYRIGHT
Copyright 2010 Creative Technology Ltd. All rights reserved. The material in this document is the intellectual property of Creative and is provided solely for information. You may not reproduce this document in whole or in part by any means. While every care has been taken in the preparation of this document, Creative accepts no liability for any consequences of its use. Our products are under continual improvement and we reserve the right to change their specification without notice. License for Lua 5.0 and later versions Copyright 19942008 Lua.org, PUC-Rio. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Libpng version 1.2.40-September 10, 2009 Copyright 1998-2009 Glenn Randers-Pehrson. Copyright 1996-1997 Andreas Dilger. Copyright 1995-1996 Guy Eric Schalnat, Group 42, Inc.
Table of Contents
Introducing ZEN X-Fi2 Application Development Kit . . . . . . . . . . . . . . . . . . 4 About the ZEN X-Fi2 Simulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating Your First Application ................................ 5 6 9
You can instantly access this Programmer's Guide and the API Reference at any time from the Help menu.
When you click the program icon, the result will look like the sample snapshot below. When you click and drag the mouse on the screen, the "Hello ZEN!" string will follow.
5. Debug in ZEN X-Fi2 Simulator. You can use print() function in Lua script to print the value of the variable in the log window. For example: number = 0 string = DEBUG-the number value is:..number print(string) The string will appear in the Log window.
6. Connect your ZEN X-Fi2 player to the PC via USB cable. 7. Copy the Hello ZEN folder into the Applications folder of your ZEN X-Fi2 player. The Hello ZEN application is now added to the Application list in the player.
Sound library Provides methods for audio functions, such as playing WAV files, adjusting the volume, changing channels, and others. Refer to the API Reference document for details.