Beispiel #1
0
 // Creates a static sound buffer of the given wave file.  If bLooping is 
 // true, the sound will loop until stopped.
 virtual HRESULT CreateStaticBuffer(TRef<ISoundInstance>& psoundNew, 
     ISoundPCMData* pcmdata, bool bLooping, ISoundPositionSource* psource = NULL)
 {
     DummySoundInstance* dummySound = new DummySoundInstance(bLooping, psource);
     psoundNew = (ISoundInstance*)dummySound;
     m_listPlayingSounds.PushEnd(dummySound);
     return S_OK;
 };
Beispiel #2
0
 // Creates a sound buffer with a loop in the middle.  The sound will play
 // the start sound, play the loop sound until it gets a soft stop, then
 // play the rest of the sound.  
 virtual HRESULT CreateASRBuffer(TRef<ISoundInstance>& psoundNew, 
     ISoundPCMData* pcmdata, unsigned uLoopStart, unsigned uLoopLength, 
     ISoundPositionSource* psource = NULL)
 {
     DummySoundInstance* dummySound = new DummySoundInstance(true, psource);
     psoundNew = (ISoundInstance*)dummySound;
     m_listPlayingSounds.PushEnd(dummySound);
     return S_OK;
 };
Beispiel #3
0
 void AddChannel(ChatTarget channel)
 {
     m_listChannels.PushEnd(channel);
     UpdateContents();
 }
Beispiel #4
0
void Window::AddKeyboardInputFilter(IKeyboardInput* pkeyboardInput)
{
	g_listKeyboardInputFilters.PushEnd(pkeyboardInput);
}