Sign In | Sign Up

My Profile

bros
12982
.....
Points: 34
Country: China
Constellation: Scorpio

Shortcuts

Categories

Post

DXWaveLis play sound
Size: Large, Medium, Small Fri May 29, 09 03:56 PM | Category: delphi
1
DXWaveList.Items.Add; will return a value of where the sound was added. So try this...

FItem := DXWaveList.Items.Add;
DXWaveList.Items[FItem].Wave.LoadFromFile(TheFile);
DXWaveList.Items[FItem].Restore;
DXWaveList.Items[FItem].Play(False);

It also doesn't hurt to Name your items either...

DXWaveList.Items[FItem].Name:='My Sound';

...this makes it easy to manage items...

DXWaveList.Items.Find('My Sound').Wave.LoadFromFile(TheFile); 


Link: http://blog.bitcomet.com/sunlovestar/post_97685/ ©
Add to favorites | Quote Reads (145) | Comments (1)

CommentsReload

oxigen73 Mon Jul 6, 09 04:24 AM

vot.

hello my oxigen73

TOP