root/branches/streaming-rework/src/libutil/SystemTimeSource.h

Revision 384, 1.6 kB (checked in by pieterpalmers, 16 years ago)

- temporary commit as backup measure
- rewrote synchronisation code
- receive streaming based on SYT works
- transmit streaming synced to received stream sort of works, still

have to iron out some issues.

NOTE: all devices but the bebob's are disabled in this code,

because they still have to be ported to the new sync
mechanism.

Line 
1 /* $Id$ */
2
3 /*
4  *   FreeBob Streaming API
5  *   FreeBob = Firewire (pro-)audio for linux
6  *
7  *   http://freebob.sf.net
8  *
9  *   Copyright (C) 2005,2006 Pieter Palmers <pieterpalmers@users.sourceforge.net>
10  *
11  *   This program is free software {} you can redistribute it and/or modify
12  *   it under the terms of the GNU General Public License as published by
13  *   the Free Software Foundation {} either version 2 of the License, or
14  *   (at your option) any later version.
15  *
16  *   This program is distributed in the hope that it will be useful,
17  *   but WITHOUT ANY WARRANTY {} without even the implied warranty of
18  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *   GNU General Public License for more details.
20  *
21  *   You should have received a copy of the GNU General Public License
22  *   along with this program {} if not, write to the Free Software
23  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  *
25  *
26  *
27  */
28 #ifndef __FREEBOB_SYSTEMTIMESOURCE__
29 #define __FREEBOB_SYSTEMTIMESOURCE__
30
31 #include "../debugmodule/debugmodule.h"
32 #include "TimeSource.h"
33
34 namespace FreebobUtil {
35
36 class SystemTimeSource
37     : public FreebobUtil::TimeSource
38 {
39
40 public:
41
42         SystemTimeSource();
43         virtual ~SystemTimeSource();
44        
45     // implement the TimeSource interface
46     freebob_microsecs_t getCurrentTime();
47     freebob_microsecs_t getCurrentTimeAsUsecs();
48     inline freebob_microsecs_t unWrapTime(freebob_microsecs_t t) {return t;};
49     inline freebob_microsecs_t wrapTime(freebob_microsecs_t t) {return t;};
50
51 protected:
52     DECLARE_DEBUG_MODULE;
53
54 };
55
56 } // end of namespace FreebobUtil
57
58 #endif /* __FREEBOB_SYSTEMTIMESOURCE__ */
59
60
Note: See TracBrowser for help on using the browser.