A few more updates, including new ASIO files (GS).
[rtaudio.git] / RtAudio.h
index 8d827e3ada84270a178a043c47f819b30cca9132..d78c3134d867c978db0ce7e6253117c5f70bc643 100644 (file)
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -10,7 +10,7 @@
     RtAudio WWW site: http://www.music.mcgill.ca/~gary/rtaudio/
 
     RtAudio: realtime audio i/o C++ classes
-    Copyright (c) 2001-2012 Gary P. Scavone
+    Copyright (c) 2001-2013 Gary P. Scavone
 
     Permission is hereby granted, free of charge, to any person
     obtaining a copy of this software and associated documentation files
@@ -42,8 +42,6 @@
   \file RtAudio.h
  */
 
-// RtAudio: Version 4.0.12
-
 #ifndef __RTAUDIO_H
 #define __RTAUDIO_H
 
@@ -51,6 +49,9 @@
 #include <vector>
 #include "RtError.h"
 
+// RtAudio version
+static const std::string VERSION( "4.0.12" );
+
 /*! \typedef typedef unsigned long RtAudioFormat;
     \brief RtAudio data format type.
 
@@ -320,6 +321,9 @@ class RtAudio
     : flags(0), numberOfBuffers(0), priority(0) {}
   };
 
+  //! A static function to determine the current RtAudio version.
+  static std::string getVersion( void ) { return VERSION; } 
+
   //! A static function to determine the available compiled audio APIs.
   /*!
     The values returned in the std::vector can be compared against