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.
26 class NullSnd
: public Audio
{
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
);
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
);