You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/dsm/mods/mod_utils
Stefan Sayer b715e74291
revised error handling:
16 years ago
..
CMakeLists.txt - Add installation of DSM sub-modules and scripts. 17 years ago
Makefile Module with some smaller heler functions: 17 years ago
ModUtils.cpp revised error handling: 16 years ago
ModUtils.h went one step further with macrotisation of DSM modules 17 years ago
Readme.mod_utils.txt revised error handling: 16 years ago

Readme.mod_utils.txt

Actions: 
 utils.getNewId(string varname)

 utils.playCountRight(int cnt [, string basedir])
    play count for laguages that have single digits after the 10s (like english)
    * Throws "file" exeption with #path if file can not be opened
    * sets $errno (arg)

 utils.playCountLeft(int cnt [, string basedir])
    play count for laguages that have single digits befire the 10s (like german)  
    * Throws "file" exeption with #path if file can not be opened
    * sets $errno (arg)

 utils.spell(string word[, string basedir])
  plays each character in the word (e.g. utils.spell(321,wav/digits/) plays
    wav/digits/3.wav, wav/digits/2.wav, wav/digits/1.wav 
  (like SayDigits from *)
  * Throws "file" exeption with #path if file can not be opened

 utils.rand(string varname [, int modulo])
  generates random number: $varname=rand()%modulo or $varname = rand()

 utils.srand() 
  seed the RNG with time().