X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=RtAudio.h;fp=RtAudio.h;h=d78c3134d867c978db0ce7e6253117c5f70bc643;hb=91b2f327e23d13ffaae84f83c1f672aa55e8a694;hp=8d827e3ada84270a178a043c47f819b30cca9132;hpb=906e5ba67f7c253655b7f1a29b832bb7852e1126;p=rtaudio.git diff --git a/RtAudio.h b/RtAudio.h index 8d827e3..d78c313 100644 --- 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 #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