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

RageSoundDriver_QT1.h

Go to the documentation of this file.
00001 #ifndef RAGE_SOUND_QT1 00002 #define RAGE_SOUND_QT1 00003 /* 00004 * RageSoundDriver_QT1.h 00005 * stepmania 00006 * 00007 * Use only a single Sound Manager channel to output sound. 00008 * 00009 * Created by Steve Checkoway on Mon Jun 23 2003. 00010 * Copyright (c) 2003 Steve Checkoway. All rights reserved. 00011 * 00012 */ 00013 00014 namespace QT 00015 { 00016 #include <QuickTime/QuickTime.h> 00017 } 00018 #include "RageSound.h" 00019 #include "RageSoundDriver_Generic_Software.h" 00020 00021 class RageSound_QT1: public RageSound_Generic_Software 00022 { 00023 private: 00024 QT::ComponentInstance clock; 00025 QT::SndChannelPtr channel; 00026 int64_t last_pos; 00027 double unitsPerSample; 00028 float latency; 00029 00030 protected: 00031 int64_t GetPosition(const RageSoundBase *snd) const; 00032 float GetPlayLatency() const { return latency; } 00033 00034 public: 00035 RageSound_QT1(); 00036 CString Init(); 00037 virtual ~RageSound_QT1(); 00038 static void GetData(QT::SndChannel *chan, QT::SndCommand *cmd_passed); 00039 }; 00040 00041 #endif /* RAGE_SOUND_QT1 */ 00042 00043 /* 00044 * (c) 2003-2004 Steve Checkoway 00045 * All rights reserved. 00046 * 00047 * Permission is hereby granted, free of charge, to any person obtaining a 00048 * copy of this software and associated documentation files (the 00049 * "Software"), to deal in the Software without restriction, including 00050 * without limitation the rights to use, copy, modify, merge, publish, 00051 * distribute, and/or sell copies of the Software, and to permit persons to 00052 * whom the Software is furnished to do so, provided that the above 00053 * copyright notice(s) and this permission notice appear in all copies of 00054 * the Software and that both the above copyright notice(s) and this 00055 * permission notice appear in supporting documentation. 00056 * 00057 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00058 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00059 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00060 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00061 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00062 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00063 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00064 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00065 * PERFORMANCE OF THIS SOFTWARE. 00066 */

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