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