Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * Copyright 2009-2011 Jörg Hermann Müller 00005 * 00006 * This file is part of AudaSpace. 00007 * 00008 * Audaspace is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * AudaSpace is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with Audaspace; if not, write to the Free Software Foundation, 00020 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 * 00022 * ***** END GPL LICENSE BLOCK ***** 00023 */ 00024 00030 #ifndef AUD_SEQUENCERHANDLE 00031 #define AUD_SEQUENCERHANDLE 00032 00033 #include "AUD_SequencerEntry.h" 00034 #include "AUD_IHandle.h" 00035 #include "AUD_I3DHandle.h" 00036 00037 class AUD_ReadDevice; 00038 00042 class AUD_SequencerHandle 00043 { 00044 private: 00046 AUD_Reference<AUD_SequencerEntry> m_entry; 00047 00049 AUD_Reference<AUD_IHandle> m_handle; 00050 00052 AUD_Reference<AUD_I3DHandle> m_3dhandle; 00053 00055 int m_status; 00056 00058 int m_pos_status; 00059 00061 int m_sound_status; 00062 00064 AUD_ReadDevice& m_device; 00065 00066 public: 00072 AUD_SequencerHandle(AUD_Reference<AUD_SequencerEntry> entry, AUD_ReadDevice& device); 00073 00077 ~AUD_SequencerHandle(); 00078 00084 int compare(AUD_Reference<AUD_SequencerEntry> entry) const; 00085 00089 void stop(); 00090 00097 void update(float position, float frame, float fps); 00098 00103 void seek(float position); 00104 }; 00105 00106 #endif //AUD_SEQUENCERHANDLE