Blender V2.61 - r43446

DNA_sound_types.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00033 #ifndef DNA_SOUND_TYPES_H
00034 #define DNA_SOUND_TYPES_H
00035 
00036 #include "DNA_listBase.h"
00037 #include "DNA_ID.h"
00038 
00039 /* stupid... could easily be solved */
00040 #include "DNA_view2d_types.h"
00041 
00042 struct Ipo;
00043 struct PackedFile;
00044 struct SpaceLink;
00045 
00046 typedef struct bSound {
00047     ID id;
00048 
00052     char name[240];  /* 240 = FILE_MAX */
00053 
00057     struct PackedFile *packedfile;
00058 
00062     void *handle;
00063 
00067     struct PackedFile *newpackedfile;
00068     struct Ipo *ipo;
00069     float volume;
00070     float attenuation;
00071     float pitch;
00072     float min_gain;
00073     float max_gain;
00074     float distance;
00075     int flags;
00076     int pad;
00077 
00084     void *cache;
00085 
00089     void *waveform;
00090 
00095     void *playback_handle;
00096 
00099 } bSound;
00100 
00101 /* XXX unused currently
00102 typedef enum eSound_Type {
00103     SOUND_TYPE_INVALID = -1,
00104     SOUND_TYPE_FILE = 0,
00105     SOUND_TYPE_BUFFER,
00106     SOUND_TYPE_LIMITER
00107 } eSound_Type;*/
00108 
00109 /* spacesound->flag */
00110 #define SND_DRAWFRAMES  1
00111 #define SND_CFRA_NUM    2
00112 
00113 #define SOUND_FLAGS_3D                  (1 << 3) /* deprecated! used for sound actuator loading */
00114 #define SOUND_FLAGS_CACHING             (1 << 4)
00115 #define SOUND_FLAGS_MONO                (1 << 5)
00116 
00117 /* to DNA_sound_types.h*/
00118 
00119 #endif
00120