Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

SoundInfo.h

Go to the documentation of this file.
00001 
00002 /****************** <SNX heading BEGIN do not edit this line> *****************
00003  *
00004  * sonix
00005  *
00006  * Original Authors:
00007  *   Kevin Meinert, Carolina Cruz-Neira
00008  *
00009  * -----------------------------------------------------------------
00010  * File:          $RCSfile: SoundInfo.h,v $
00011  * Date modified: $Date: 2003/07/07 05:34:35 $
00012  * Version:       $Revision: 1.20 $
00013  * -----------------------------------------------------------------
00014  *
00015  ****************** <SNX heading END do not edit this line> ******************/
00016 /*************** <auto-copyright.pl BEGIN do not edit this line> **************
00017  *
00018  * VR Juggler is (C) Copyright 1998-2003 by Iowa State University
00019  *
00020  * Original Authors:
00021  *   Allen Bierbaum, Christopher Just,
00022  *   Patrick Hartling, Kevin Meinert,
00023  *   Carolina Cruz-Neira, Albert Baker
00024  *
00025  * This library is free software; you can redistribute it and/or
00026  * modify it under the terms of the GNU Library General Public
00027  * License as published by the Free Software Foundation; either
00028  * version 2 of the License, or (at your option) any later version.
00029  *
00030  * This library is distributed in the hope that it will be useful,
00031  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00032  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00033  * Library General Public License for more details.
00034  *
00035  * You should have received a copy of the GNU Library General Public
00036  * License along with this library; if not, write to the
00037  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00038  * Boston, MA 02111-1307, USA.
00039  *
00040  *************** <auto-copyright.pl END do not edit this line> ***************/
00041 
00042 
00043 
00044 
00045 /* Generated by Together */
00046 
00047 #ifndef SOUND_INFO_DATA
00048 #define SOUND_INFO_DATA
00049 #include <string>
00050 #include <vector>
00051 #include <gmtl/Math.h>
00052 #include <gmtl/Matrix.h>
00053 #include <gmtl/Vec.h>
00054 #include <gmtl/MatrixOps.h>
00055 #include <gmtl/VecOps.h>
00056 #include <gmtl/Xforms.h>
00057 
00058 namespace snx
00059 {
00060 
00067 struct SoundInfo
00068 {
00069    SoundInfo() : alias(), 
00070                  datasource( FILESYSTEM ), 
00071                  filename(),
00072                  ambient( false ),
00073                  retriggerable( false ),
00074                  repeat( 1 ),
00075                  pitchbend( 1.0f ),
00076                  cutoff( 1.0f ),
00077                  volume( 1.0f ),
00078                  streaming( false ),
00079                  triggerOnNextBind( false ), 
00080                  repeatCountdown( 0 )
00081    {
00082       //position.makeIdent();
00083       position[0] = 0.0f;
00084       position[1] = 0.0f;
00085       position[2] = 0.0f;
00086    }
00087    
00088          
00090    std::string alias;
00091 
00092    enum DataSource
00093    {
00094       FILESYSTEM, DATA_16_MONO, DATA_8_MONO
00095    };
00096       
00098    DataSource datasource; 
00099 
00104    std::string filename;
00105 
00107    gmtl::Vec3f position;
00108    
00110    bool ambient;        
00111    
00113    bool retriggerable;  
00114    
00116    int repeat;          
00117 
00119    float pitchbend;
00120 
00122    float cutoff;
00123 
00125    float volume;
00126 
00128    bool streaming;
00129 
00130 public:
00132    bool triggerOnNextBind;
00134    int repeatCountdown; // number of times left to repeat (changes during play)
00135 };
00136 
00137 } // end namespace
00138 
00139 #endif //SOUND_INFO_DATA

Generated on Sun May 2 14:39:26 2004 for Juggler Sonix by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002