Presented by BitComet

Original Post
Relative:
DXWaveLis

DXWaveLis play sound

May 29, 2009, 03:56 PM [Reply]

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); 


no say,more do

Jul 06, 2009, 04:24 AM [Reply]

vot.


hello my oxigen73

 

Please sign in to publish your post.