xref: /haiku/src/kits/media/TimeSourceObject.h (revision 287f7492c391deeb77d87951ed2b0620a9d163d5)
1 /***********************************************************************
2  * Copyright (c) 2002 Marcus Overhagen. All Rights Reserved.
3  * This file may be used under the terms of the OpenBeOS License.
4  *
5  * The object returned by BMediaRoster's
6  * BTimeSource * MakeTimeSourceFor(const media_node & for_node);
7  *
8  ***********************************************************************/
9 #ifndef _TIME_SOURCE_OBJECT_H_
10 #define _TIME_SOURCE_OBJECT_H_
11 
12 #include <TimeSource.h>
13 
14 namespace BPrivate { namespace media {
15 
16 class TimeSourceObject : public BTimeSource
17 {
18 public:
19 	TimeSourceObject(const media_node &node);
20 
21 	virtual	status_t SnoozeUntil(
22 				bigtime_t performance_time,
23 				bigtime_t with_latency = 0,
24 				bool retry_signals = false);
25 protected:
26 	virtual	status_t TimeSourceOp(
27 				const time_source_op_info & op,
28 				void * _reserved);
29 
30 virtual	BMediaAddOn* AddOn(
31 				int32 * internal_id) const;
32 
33 };
34 
35 } } using namespace BPrivate::media;
36 
37 #endif
38