| 1 |
/* gstreamermm - a C++ wrapper for gstreamer |
| 2 |
* |
| 3 |
* Copyright 2008 The gstreamermm Development Team |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <gstreamermm/clock.h> |
| 21 |
|
| 22 |
_DEFS(gstreamermm,gst) |
| 23 |
|
| 24 |
namespace Gst |
| 25 |
{ |
| 26 |
|
| 27 |
/** A default clock that uses the current system time. |
| 28 |
* The GStreamer core provides a Gst::SystemClock based on the system time. |
| 29 |
* Asynchronous callbacks are scheduled from an internal thread. |
| 30 |
* |
| 31 |
* Gst::Clock implementors are encouraged to subclass this systemclock as it |
| 32 |
* implements the async notification. |
| 33 |
* |
| 34 |
* Subclasses can however override all of the important methods for sync and |
| 35 |
* async notifications to implement their own callback methods or blocking wait |
| 36 |
* operations. |
| 37 |
* |
| 38 |
* Last reviewed on 2006-03-08 (0.10.4) |
| 39 |
*/ |
| 40 |
class SystemClock : public Clock |
| 41 |
{ |
| 42 |
_CLASS_GOBJECT(SystemClock, GstSystemClock, GST_SYSTEM_CLOCK, Clock, GstClock) |
| 43 |
|
| 44 |
protected: |
| 45 |
_CTOR_DEFAULT |
| 46 |
|
| 47 |
public: |
| 48 |
_WRAP_METHOD(static Glib::RefPtr<Gst::Clock> obtain(), gst_system_clock_obtain) |
| 49 |
}; |
| 50 |
|
| 51 |
} //namespace Gst |