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

RageSoundDriver_OSS.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 "RageThreads.h" 00006 #include "RageTimer.h" 00007 00008 class RageSound_OSS: public RageSound_Generic_Software 00009 { 00010 int fd; 00011 00012 bool shutdown; 00013 int last_cursor_pos; 00014 int samplerate; 00015 00016 static int MixerThread_start(void *p); 00017 void MixerThread(); 00018 RageThread MixingThread; 00019 00020 static CString CheckOSSVersion( int fd ); 00021 00022 public: 00023 bool GetData(); 00024 int GetSampleRate( int rate ) const { return samplerate; } 00025 00026 /* virtuals: */ 00027 int64_t GetPosition( const RageSoundBase *snd ) const; 00028 float GetPlayLatency() const; 00029 void SetupDecodingThread(); 00030 00031 RageSound_OSS(); 00032 CString Init(); 00033 ~RageSound_OSS(); 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