TAPIEx ActiveX Control v3.6

PlayMemoryBuffer

The PlayMemoryBuffer method play the wave file that in system memory (IMemoryBuffer).

Function PlayMemoryBuffer(
MemoryBuffer As IMemoryBuffer) 
As Boolean

Parameters

MemoryBuffer
The refernce of IMemoryBuffer interface.

Return Values

If the method succeeds, return TRUE. If the function fails, the return value is FALSE.

Remarks

Example:
' VB code sample
	
  Private Sub Form_Load()
	  Set g_membuffers = New MemoryBuffers
     g_membuffers.RootDirectory = "../../wave_pcm/"
     g_membuffers.AddNew "Greeting", "Greeting.wav"
     g_membuffers.AddNew "Menu", "Menu.wav"
	 end sub

 Sub OnConnected()
    m_Call.PlayMemoryBuffer g_membuffers("Greeting")
    m_Call.PlayMemoryBuffer g_membuffers("Menu"
 end sub

See Also

IMemoryBuffer, PlayMemoryBuffer ,MemoryBuffers