Board index » Visual Studio » kdvoice.multiplefiles

kdvoice.multiplefiles

Visual Studio117
Hi

I have a code like this:



Private Sub Command1_Click()

Dim DeviceID As Long

DeviceID = -1

Dim lvret As Long

Dim lvTotalBytes As Long

lvret = KDVoice2.PlayMultipleFiles(DeviceID, "D:\number.wav|100.wav|

20.wav", lvTotalBytes)

lvret = KDVoice2.PlayMultipleFiles(DeviceID, "D:\number.wav|200.wav|

30.wav", lvTotalBytes)

End Sub



Because of the logic of the program I have to use PLaymultiplefiles in

different parts, my problem is that when I run this program just the

last set of files (200.wav , 30.wav) are played. What's wrong? Can

anyone help?


-
 

Re:kdvoice.multiplefiles

On May 22, 4:57 pm, sarah <sarah.stud...@gmail.com>wrote:

Quote
Hi

I have a code like this:



Private Sub Command1_Click()

Dim DeviceID As Long

DeviceID = -1

Dim lvret As Long

Dim lvTotalBytes As Long

lvret = KDVoice2.PlayMultipleFiles(DeviceID, "D:\number.wav|100.wav|

20.wav", lvTotalBytes)

lvret = KDVoice2.PlayMultipleFiles(DeviceID, "D:\number.wav|200.wav|

30.wav", lvTotalBytes)

End Sub



Because of the logic of the program I have to use PLaymultiplefiles in

different parts, my problem is that when I run this program just the

last set of files (200.wav , 30.wav) are played. What's wrong? Can

anyone help?



No idea?



-

Re:kdvoice.multiplefiles

On May 22, 4:57 pm, sarah <sarah.stud...@gmail.com>wrote:

Quote
I have a code like this:



Private Sub Command1_Click()

Dim DeviceID As Long

DeviceID = -1

Dim lvret As Long

Dim lvTotalBytes As Long

lvret = KDVoice2.PlayMultipleFiles(DeviceID, "D:\number.wav|100.wav|

20.wav", lvTotalBytes)

lvret = KDVoice2.PlayMultipleFiles(DeviceID, "D:\number.wav|200.wav|

30.wav", lvTotalBytes)

End Sub



Because of the logic of the program I have to use PLaymultiplefiles in

different parts, my problem is that when I run this program just the

last set of files (200.wav , 30.wav) are played. What's wrong? Can

anyone help?





"sarah" <sarah.student@gmail.com>asked...

: No idea?



It's very hard to tell what's going on inside .PlayMultipleFiles().

And I can't tell exactly what KDVoice2 represents. Can you

provide a little more information on what the KDVoice2 class

represents?



--

Jim Carlock





-