globals.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Gav Wood                                        *
00003  *   gav@cs.york.ac.uk                                                     *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Library General Public License as       *
00007  *   published by the Free Software Foundation; either version 2 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  ***************************************************************************/
00010 
00011 #ifndef _GEDDEI_GLOBALS_H
00012 #define _GEDDEI_GLOBALS_H
00013 
00014 #include <qthread.h>
00015 #include <qstringlist.h>
00016 
00017 namespace Geddei
00018 {
00019  
00020  enum { FFTW = 1, GAT = 2, LIBSNDFILE = 4, ALSA = 8, LIBVORBISFILE = 16, LIBMAD = 32 };
00021  enum MultiplicityType { NotMulti = 0, In = 1, Out = 2, InOut = 3, Const = 4, InConst = 5, OutConst = 6, InOutConst = 7 };
00022  static const uint Undefined = (uint)-1;
00023  
00024  void sleep(const uint secs);
00025  void usleep(const uint usecs);
00026  
00027  inline const uint ceillog2(const uint i)
00028  {
00029   for(uint l = 0; ; l++)
00030    if(i <= uint(1 << l))
00031     return l;
00032  }
00033  
00034  const char *getVersion();
00035  const uint getConfig();
00036  const QStringList getPaths();
00037  
00038 }
00039 
00040 #endif

Generated on Thu Jul 13 06:56:33 2006 for Exscalibar by  doxygen 1.4.7