Author: ks156
Date: 2009-02-06 09:28:16 +0100 (Fri, 06 Feb 2009)
New Revision: 3579

Added:
   software_suite_v2/software/scripts/sound_reflasher/
   software_suite_v2/software/scripts/sound_reflasher/branches/
   software_suite_v2/software/scripts/sound_reflasher/tags/
   software_suite_v2/software/scripts/sound_reflasher/trunk/
   software_suite_v2/software/scripts/sound_reflasher/trunk/README
   software_suite_v2/software/scripts/sound_reflasher/trunk/tuxSoundFlash.py
Log:
* Added the script 'tuxSoundFlash.py', written by Gwadavel.
  (http://bbs.tuxisalive.com/viewtopic.php?id=62)

  This script is used to flash the internal sound bank of Tux Droid.


Added: software_suite_v2/software/scripts/sound_reflasher/trunk/README
===================================================================
--- software_suite_v2/software/scripts/sound_reflasher/trunk/README             
                (rev 0)
+++ software_suite_v2/software/scripts/sound_reflasher/trunk/README     
2009-02-06 08:28:16 UTC (rev 3579)
@@ -0,0 +1,9 @@
+$Id$
+
+tuxSoundFlash is a script to flash the internal sound bank of Tux Droid.
+
+To use this script, be sure that the sound files are present in
+/usr/share/tuxdroid/resources/sounds, and type the following command :
+'python tuxSoundFlash.py'
+
+This script as originaly be written by Eric Lescaudron, aka Gwadavel.


Property changes on: 
software_suite_v2/software/scripts/sound_reflasher/trunk/README
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: software_suite_v2/software/scripts/sound_reflasher/trunk/tuxSoundFlash.py
===================================================================
--- software_suite_v2/software/scripts/sound_reflasher/trunk/tuxSoundFlash.py   
                        (rev 0)
+++ software_suite_v2/software/scripts/sound_reflasher/trunk/tuxSoundFlash.py   
2009-02-06 08:28:16 UTC (rev 3579)
@@ -0,0 +1,78 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# -----------------------------------------------------------------------------
+# To reflash Tux Droid original sounds
+# Edit script ans change path
+# Before use it restart Tuxhttpserver and connect charger
+#
+# Pour reflasher les sons originaux du Tux Droid
+# Editez le script et modifiez la variable path
+# Avant n'oubliez pas de redémarrez Tuxhttpserver et connectez le chargeur
+#
+# Original sounds 
+# http://svn.tuxisalive.com/software_suite_v1/software/tuxgi/trunk/sounds/
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+# -----------------------------------------------------------------------------
+# $Id$
+# -----------------------------------------------------------------------------
+
+"""
+CHANGES
+=======
+
+2009/01/23 - version 0.1:
+    - Initial version
+
+TODO LIST
+=========
+- 
+"""
+
+__author__  = "Gwadavel"
+__appname__ = "Tux Droid sound reflasher"
+__version__ = "0.1"
+__date__    = "2008/01/23"
+__license__ = "GPL"
+
+
+from tuxisalive.api import *
+
+ip = "127.0.0.1" # Tuxhttpserver ip
+
+path = "/usr/share/tuxdroid/resources/sounds/" # Original sounds path
+
+wavList = ["1.wav", "2.wav", "3.wav", "4.wav", "5.wav", "6.wav", "7.wav",
+"8.wav", "9.wav", "10.wav", "11.wav", "12.wav", "13.wav", "14.wav", "15.wav",
+"16.wav","17.wav"] 
+
+for i in range(0, len(wavList)): # Add path to Wave List
+    wavList[i] = path + wavList[i]
+
+tux = TuxAPI(ip, 270)
+
+tux.server.autoConnect(CLIENT_LEVEL_RESTRICTED, 'tuxSoundFlash', 'NONE')
+tux.server.waitConnected(10.0)
+tux.dongle.waitConnected(10.0)
+tux.radio.waitConnected(10.0)
+if tux.access.waitAcquire(10.0, ACCESS_PRIORITY_HIGH): 
+    print "Begin to reflash the internal sounds"
+    print tux.soundFlash.reflash(wavList) # Flash sounds
+    print "Reflashing done"
+tux.access.release()
+tux.server.disconnect()
+tux.destroy()


Property changes on: 
software_suite_v2/software/scripts/sound_reflasher/trunk/tuxSoundFlash.py
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/x-python
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to