xref: /haiku/src/kits/media/TimeSourceObject.cpp (revision 287f7492c391deeb77d87951ed2b0620a9d163d5)
1*287f7492Sbeveloper /***********************************************************************
2*287f7492Sbeveloper  * Copyright (c) 2002 Marcus Overhagen. All Rights Reserved.
3*287f7492Sbeveloper  * This file may be used under the terms of the OpenBeOS License.
4*287f7492Sbeveloper  *
5*287f7492Sbeveloper  * The object returned by BMediaRoster's
6*287f7492Sbeveloper  * BTimeSource * MakeTimeSourceFor(const media_node & for_node);
7*287f7492Sbeveloper  *
8*287f7492Sbeveloper  ***********************************************************************/
9*287f7492Sbeveloper 
10*287f7492Sbeveloper #include <OS.h>
11*287f7492Sbeveloper #include <stdio.h>
12*287f7492Sbeveloper #include <MediaRoster.h>
13*287f7492Sbeveloper #include "TimeSourceObject.h"
14*287f7492Sbeveloper 
15*287f7492Sbeveloper TimeSourceObject::TimeSourceObject(const media_node &node) :
16*287f7492Sbeveloper 	BMediaNode("some timesource object")
17*287f7492Sbeveloper {
18*287f7492Sbeveloper 	printf("TimeSourceObject::TimeSourceObject enter\n");
19*287f7492Sbeveloper 	delete_port(fControlPort);
20*287f7492Sbeveloper 	fControlPort = -666;
21*287f7492Sbeveloper 	printf("TimeSourceObject::TimeSourceObject leave\n");
22*287f7492Sbeveloper }
23*287f7492Sbeveloper 
24*287f7492Sbeveloper /* virtual */ status_t
25*287f7492Sbeveloper TimeSourceObject::SnoozeUntil(
26*287f7492Sbeveloper 				bigtime_t performance_time,
27*287f7492Sbeveloper 				bigtime_t with_latency,
28*287f7492Sbeveloper 				bool retry_signals)
29*287f7492Sbeveloper {
30*287f7492Sbeveloper 	return B_ERROR;
31*287f7492Sbeveloper }
32*287f7492Sbeveloper 
33*287f7492Sbeveloper /* virtual */ status_t
34*287f7492Sbeveloper TimeSourceObject::TimeSourceOp(
35*287f7492Sbeveloper 				const time_source_op_info & op,
36*287f7492Sbeveloper 				void * _reserved)
37*287f7492Sbeveloper {
38*287f7492Sbeveloper 	return B_OK;
39*287f7492Sbeveloper }
40*287f7492Sbeveloper 
41*287f7492Sbeveloper /* virtual */ BMediaAddOn*
42*287f7492Sbeveloper TimeSourceObject::AddOn(int32 * internal_id) const
43*287f7492Sbeveloper {
44*287f7492Sbeveloper 	return NULL;
45*287f7492Sbeveloper }
46