2 * Copyright 2002 Marcus Overhagen. All Rights Reserved.
3 * This file may be used under the terms of the MIT License.
5 #ifndef TIME_SOURCE_OBJECT_MANAGER_H
6 #define TIME_SOURCE_OBJECT_MANAGER_H
12 #include <MediaDefs.h>
22 class TimeSourceObjectManager
: BLocker
{
24 TimeSourceObjectManager();
25 ~TimeSourceObjectManager();
27 BTimeSource
* GetTimeSource(const media_node
& node
);
28 void ObjectDeleted(BTimeSource
* timeSource
);
31 typedef std::map
<media_node_id
, BTimeSource
*> NodeMap
;
37 extern TimeSourceObjectManager
* gTimeSourceObjectManager
;
41 } // namespace BPrivate
44 using BPrivate::media::gTimeSourceObjectManager
;
47 #endif // _TIME_SOURCE_OBJECT_MANAGER_H_