diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 |
commit | e40fc849149dd97c248866a4a1d026dda5e57b62 (patch) | |
tree | b12b358f3b3a0608001d30403358f8443118ec5f /attic/muse2-oom/muse2/muse/driver/timerdev.h | |
parent | 1bd4f2e8d9745cabb667b043171cad22c8577768 (diff) |
clean3
Diffstat (limited to 'attic/muse2-oom/muse2/muse/driver/timerdev.h')
-rw-r--r-- | attic/muse2-oom/muse2/muse/driver/timerdev.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/attic/muse2-oom/muse2/muse/driver/timerdev.h b/attic/muse2-oom/muse2/muse/driver/timerdev.h new file mode 100644 index 00000000..944bc213 --- /dev/null +++ b/attic/muse2-oom/muse2/muse/driver/timerdev.h @@ -0,0 +1,41 @@ +//========================================================= +// MusE +// Linux Music Editor +// $Id: timerdev.h,v 1.1.2.3 2005/08/21 18:11:28 spamatica Exp $ +// +// Plenty of code borrowed from timer.c example in +// alsalib 1.0.7 +// +// (C) Copyright 2004 Robert Jonsson (rj@spamatica.se) +//========================================================= + +#ifndef __TIMERDEV_H__ +#define __TIMERDEV_H__ + +#include "alsa/asoundlib.h" + +#define TIMER_DEBUG 0 + +//--------------------------------------------------------- +// AlsaTimer +//--------------------------------------------------------- + +class Timer { + + public: + Timer() {}; + virtual ~Timer() {}; + + virtual signed int initTimer() = 0; + virtual unsigned int setTimerResolution(unsigned int resolution) = 0; + virtual unsigned int getTimerResolution() = 0; + virtual unsigned int setTimerFreq(unsigned int freq) = 0; + virtual unsigned int getTimerFreq() = 0; + + virtual bool startTimer() = 0; + virtual bool stopTimer() = 0; + virtual unsigned int getTimerTicks(bool printTicks = false) = 0; + +}; + +#endif //__ALSATIMER_H__ |