XFuVibratorToolkit.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# XFuVibratorToolkit.h

Go to the documentation of this file.

    00001 /*! \file
    00002  * X-Forge Util <br>
    00003  * Copyright 2000-2003 Fathammer Ltd
    00004  *
    00005  * \brief Toolkit for vibrator effects
    00006  *
    00007  * $Id: XFuVibratorToolkit.h,v 1.4 2003/09/26 10:41:08 jani Exp $
    00008  * $Date: 2003/09/26 10:41:08 $
    00009  * $Revision: 1.4 $
    00010  */
    00011
    00012 #ifndef XFUVIBRATORTOOLKIT_H_INCLUDED
    00013 #define XFUVIBRATORTOOLKIT_H_INCLUDED
    00014
    00015
    00016 //! Pseudo random number generator class.
    00017 class XFuVibratorToolkit
    00018 {
    00019 public:
    00020
    00021     //! Play dithered note on 1-bit vibrator hardware.
    00022     /*! Uses random dither pattern to simulate magnitudes on 1-bit
    00023      *  vibrator hardware, such as the Tapwave Zodiac.
    00024      *
    00025      * \param aDuration duration of vibration in 10ms units
    00026      * \param aMagnitude strength of vibration, 0..255
    00027      */
    00028     static void playDitheredNote(UINT8 aDuration, UINT8 aMagnitude);
    00029 };
    00030
    00031
    00032 #endif // !XFUVIBRATORTOOLKIT_H_INCLUDED
    00033

|  | X-Forge Documentation Confidential Copyright © 2002-2003 Fathammer |  | Documentation generated with doxygen by Dimitri van Heesch