diff options
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__ |