This is the API that lets other programs control the VRS Recording System.
Most of the documentation refers to C++ code but with careful reading you should easily be able to implement it in other languages (eg. VB).
If you are using C++, you should include the source files vrsapi.h and vrsapi.cpp in your project. These give you immediate access the the VRSAPI functions as described below. The vrsapi.h and vrsapi.cpp files compile under most compilers (including Visual C++, Borland C++ and gcc).
We have also included an example file (which is actually the source code of vrscmd - the command line equivalent).
If you find this all too hard, you can consider using vrscmd - the command line equivalent. You can download that from www.nch.com.au/vrs/sdk.html.
Contents
Before any of the function calls below can be called, VRS must be running. The easiest way to do this is to set VRS to run automatically, but if you need to launch it from your program use ShellExecute or CreateProcess to open:
"C:\Program Files\NCH Swift Sound\VRS\vrs.exe"
If you want it to run on the task bar tray add the argument /logon like this:
"C:\Program Files\NCH Swift Sound\VRS\vrs.exe" /logon
If your program does launch VRS, you will need to wait for it to create its window before FindWindow will succeed (read on).
Commands are Sent to the VRS Main Window. To find the window use code like this:
Note: Before you can control recording using the API, you must setup each channel of VRS to be in manual mode. If the channels are not in manual mode, commands are ignored.
To start the recorder on a specified channel send the MCI_RECORD message to the VRS Main Windows like this:
To stop the recorder (or a specific recorder channel), use the MCI_STOP message as follows:
Testing whether a channel is recording
Use the MCI_STATUS message to test if a channel is recording (TRUE) or stopped (FALSE).
Data can be associated with the recording. For example, your software can send a file reference relating to a current recording. This data with then be displayed and can be searched on using VRS Find & Play.
The VRS API uses MCI_ constants simply because they are reserved by Microsoft, can be easily identified and are normally already defined in your header files. The functioning is not intended in any way to conform to the description in the MCI API.
The MCI_ constants used above are defined in the Windows API documentation but if your compiler does not have them, these are the values:
If you have problems writing your application, please go to www.nch.com.au/vrs/support.html and use the form to contact us.
If you wish to distribute the VRS packaged with your software you should consider the very easy and affordable OEM licence terms for distributing VRS. See www.nch.com.au/reseller for more information.
We also offer corporate software development services if you want us to do the development for you or if you need more substancial changes to the VRS. Costs start from around $US300 for a simple function but can increase to $10,000+ for development of a complete new release application. Please see www.nch.com.au/development for contact details to request a quote.
We can also rebrand VRS with your logo and details for a small fee (see http://www.nch.com.au/reseller for more information).
You can distribute the VRS install file with your software (but you may not under any circumstances distribute registration keys or seek to undermine the registration system). See the IVM licence terms (on the Help file). Normally your customers would purchase the IVM directly from us. We also provide easy licence terms if you do need to distribute registered versions of the IVM. Please see http://www.nch.com.au/reseller under the Software Blanket Licence heading.
More Information...
For more information please see: