Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

  1. #if !defined(CTRL__Sequence_inl__INCLUDED)
  2. #define CTRL__Sequence_inl__INCLUDED
  3. #pragma once
  4. #if ENABLE_MSGTABLE_API
  5. /***************************************************************************\
  6. *****************************************************************************
  7. *
  8. * class DuSequence
  9. *
  10. *****************************************************************************
  11. \***************************************************************************/
  12. //------------------------------------------------------------------------------
  13. inline
  14. DuSequence::DuSequence()
  15. {
  16. m_cRef = 1;
  17. }
  18. //------------------------------------------------------------------------------
  19. inline
  20. DuSequence::~DuSequence()
  21. {
  22. Stop();
  23. RemoveAllKeyFrames();
  24. SafeRelease(m_pflow);
  25. }
  26. //------------------------------------------------------------------------------
  27. inline void
  28. DuSequence::AddRef()
  29. {
  30. ++m_cRef;
  31. }
  32. //------------------------------------------------------------------------------
  33. inline void
  34. DuSequence::Release()
  35. {
  36. if (--m_cRef == 0)
  37. Delete();
  38. }
  39. //------------------------------------------------------------------------------
  40. inline void
  41. DuSequence::SortKeyFrames()
  42. {
  43. qsort(m_arSeqData.GetData(), m_arSeqData.GetSize(), sizeof(SeqData), CompareItems);
  44. }
  45. //------------------------------------------------------------------------------
  46. inline BOOL
  47. DuSequence::IsPlaying() const
  48. {
  49. return m_pgvSubject != NULL;
  50. }
  51. #endif // ENABLE_MSGTABLE_API
  52. #endif // CTRL__Sequence_inl__INCLUDED