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.
22 #include "NullSound.h"
23 #include "AmbientMgr.h"
26 NullSound::NullSound(void)
30 ambim
= new AmbientMgr();
33 NullSound::~NullSound(void)
38 bool NullSound::Init(void)
43 unsigned int NullSound::Play(const char*, int, int, unsigned int)
45 return 1000; //Returning 1 Second Length
48 int NullSound::CreateStream(Holder
<SoundMgr
>)
53 bool NullSound::Stop()
58 bool NullSound::Play()
63 void NullSound::ResetMusics()
67 bool NullSound::CanPlay()
72 bool NullSound::IsSpeaking()
77 void NullSound::UpdateListenerPos(int x
, int y
)
83 void NullSound::GetListenerPos(int& x
, int& y
)
89 int NullSound::SetupNewStream(ieWord
, ieWord
, ieWord
, ieWord
, bool, bool)
94 int NullSound::QueueAmbient(int, const char*)
99 bool NullSound::ReleaseStream(int, bool)
104 void NullSound::SetAmbientStreamVolume(int, int)
109 void NullSound::QueueBuffer(int, unsigned short, int, short*, int, int)
116 #include "plugindef.h"
118 GEMRB_PLUGIN(0x96E414D, "Null Sound Driver")
119 PLUGIN_CLASS(IE_AUDIO_CLASS_ID
, NullSound
)