Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageSoundDriver_WaveOut.h

Go to the documentation of this file.
00001 #ifndef RAGE_SOUND_WAVEOUT 00002 #define RAGE_SOUND_WAVEOUT 00003 00004 #include "RageSoundDriver_Generic_Software.h" 00005 #include "RageSoundDriver.h" 00006 #include "RageThreads.h" 00007 #include "windows.h" 00008 #include "Mmsystem.h" 00009 #include "RageTimer.h" 00010 00011 class RageSound_WaveOut: public RageSound_Generic_Software 00012 { 00013 HWAVEOUT wo; 00014 HANDLE sound_event; 00015 WAVEHDR buffers[8]; 00016 bool shutdown; 00017 int last_cursor_pos; 00018 00019 static int MixerThread_start(void *p); 00020 void MixerThread(); 00021 RageThread MixingThread; 00022 bool GetData(); 00023 00024 protected: 00025 void SetupDecodingThread(); 00026 00027 public: 00028 int64_t GetPosition( const RageSoundBase *snd ) const; 00029 float GetPlayLatency() const; 00030 00031 RageSound_WaveOut(); 00032 ~RageSound_WaveOut(); 00033 CString Init(); 00034 }; 00035 00036 #endif 00037 00038 /* 00039 * (c) 2002-2004 Glenn Maynard 00040 * All rights reserved. 00041 * 00042 * Permission is hereby granted, free of charge, to any person obtaining a 00043 * copy of this software and associated documentation files (the 00044 * "Software"), to deal in the Software without restriction, including 00045 * without limitation the rights to use, copy, modify, merge, publish, 00046 * distribute, and/or sell copies of the Software, and to permit persons to 00047 * whom the Software is furnished to do so, provided that the above 00048 * copyright notice(s) and this permission notice appear in all copies of 00049 * the Software and that both the above copyright notice(s) and this 00050 * permission notice appear in supporting documentation. 00051 * 00052 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00053 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00054 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00055 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00056 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00057 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00058 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00059 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00060 * PERFORMANCE OF THIS SOFTWARE. 00061 */

Generated on Thu Jan 27 20:57:28 2005 for StepMania by doxygen 1.3.7