Switch to using -I to find includes, rather than relative paths.
[gemrb.git] / gemrb / plugins / NullSound / NullSound.h
blob8d5d714fb206cabdd504342e6d6e643e997be2ac
1 /* GemRB - Infinity Engine Emulator
2 * Copyright (C) 2003 The GemRB Project
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef NULLSND_H
22 #define NULLSND_H
24 #include "Audio.h"
26 class NullSnd : public Audio {
27 public:
28 NullSnd(void);
29 ~NullSnd(void);
30 bool Init(void);
31 unsigned int Play(const char* ResRef, int XPos = 0, int YPos = 0, unsigned int flags = GEM_SND_RELATIVE);
32 int StreamFile(const char* filename);
33 bool Play();
34 bool Stop();
35 bool CanPlay();
36 bool IsSpeaking();
37 void ResetMusics();
38 void UpdateListenerPos(int XPos, int YPos);
39 void GetListenerPos(int& XPos, int& YPos);
40 void UpdateVolume(unsigned int) {}
42 int SetupNewStream(ieWord x, ieWord y, ieWord z, ieWord gain, bool point, bool Ambient);
43 int QueueAmbient(int stream, const char* sound);
44 bool ReleaseStream(int stream, bool hardstop);
45 void SetAmbientStreamVolume(int stream, int gain);
46 void QueueBuffer(int stream, unsigned short bits, int channels,
47 short* memory, int size, int samplerate);
50 public:
51 void release(void)
53 delete this;
56 private:
57 int XPos, YPos;
60 #endif