[Visual Basic] Public Shared Function PlayTone( _ ByVal chdev As Integer, _ ByVal freq1 As Integer, _ ByVal freq2 As Integer, _ ByVal amp1 As Integer, _ ByVal amp2 As Integer, _ ByVal duration As Integer, _ ByVal TermDigits As String, _ ByVal ClearDigitsBuffer As Integer _ ) As TermCode
This is a string of digits that will terminate playing the file if pressed. Valid digits are 1-9 and the # and * key. For example, if you wished to terminate on the 1 key OR the # key, send the string "1#". If you pass the string "ANY", playing will be terminated upon any press of a key. Pass the empty string ("") if you wish for the file NOT to be interrupted.
ClearDigitsBuffer
1 for TRUE or 0 for FALSE. If true, any digits sitting in the board's digit buffer are cleared before getting the new digits. Usually this is set to TRUE.