missing include for fluid
[blender.git] / intern / SoundSystem / SND_WaveSlot.h
1 /*
2  * SND_WaveSlot.cpp
3  *
4  * class for storing sample related information
5  *
6  * $Id$
7  *
8  * ***** BEGIN GPL LICENSE BLOCK *****
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  *
24  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
25  * All rights reserved.
26  *
27  * The Original Code is: all of this file.
28  *
29  * Contributor(s): none yet.
30  *
31  * ***** END GPL LICENSE BLOCK *****
32  */
33
34 #ifndef __SND_WAVESLOT_H
35 #define __SND_WAVESLOT_H
36
37 #include "STR_String.h"
38
39 class SND_WaveSlot
40 {
41         STR_String              m_samplename;
42         bool                    m_loaded;
43         void*                   m_data;
44         unsigned int    m_buffer;
45         unsigned int    m_sampleformat;
46         unsigned int    m_numberofchannels;
47         unsigned int    m_samplerate;
48         unsigned int    m_bitrate;
49         unsigned int    m_numberofsamples;
50         unsigned int    m_filesize;
51
52 public:
53
54         SND_WaveSlot(): m_loaded(false),
55                                         m_data(NULL),
56                                         m_buffer(0),
57                                         m_sampleformat(0),
58                                         m_numberofchannels(0),
59                                         m_samplerate(0),
60                                         m_bitrate(0),
61                                         m_numberofsamples(0),
62                                         m_filesize(0)
63                                         {};
64         ~SND_WaveSlot();
65
66         void SetSampleName(STR_String samplename);
67         void SetLoaded(bool loaded);
68         void SetData(void* data);
69         void SetBuffer(unsigned int buffer);
70         void SetSampleFormat(unsigned int sampleformat);
71         void SetNumberOfChannels(unsigned int numberofchannels);
72         void SetSampleRate(unsigned int samplerate);
73         void SetBitRate(unsigned int bitrate);
74         void SetNumberOfSamples(unsigned int numberofsamples);
75         void SetFileSize(unsigned int filesize);
76         
77
78         const STR_String&       GetSampleName();
79         bool                            IsLoaded() const;
80         void*                           GetData();
81         unsigned int            GetBuffer() const;
82         unsigned int            GetSampleFormat() const;
83         unsigned int            GetNumberOfChannels() const;
84         unsigned int            GetSampleRate() const;
85         unsigned int            GetBitRate() const;
86         unsigned int            GetNumberOfSamples() const;
87         unsigned int            GetFileSize() const;
88
89 };
90
91 #endif //__SND_WAVESLOT_H
92