Playing multiple wav files in Delphi 2006
Posted on 2006-05-14
Hello everyone :)
I am a total Delphi newbie having recently moved from Visual Basic 6. Loving the language but finding it hard to do a few things.
I need to be able to play several short sounds (longest is less than 30 seconds) on top of each other...in plain english
Sound1 = Filename
Sound2 = Filename
Sound3 = Filename
Sound20 = Filename
then i have to be able to something like
the sounds should not stop the app from running and should only play once. I also need to be able to do a
Sound1.volume = 50 ; volume levels would be something like 0 per cent to 200 per cent.
All of the files are wav format...but if I could use MP3 then that would be an added bonus (not necessary tho)
I have tracked down the Jedi-Delphi headers for DirectX9 SDK but on downloading I dont find anything I recognise that would help me...I just see a lot of pas files. As I said I have never used Delphi before and am totally new to it. But I believe that DirectSound is the way I would like to go.
Would anyone familair with the Jedi DirectX9 headers be able to help...or assist me in learning what it is I need to make this work?
Would really appreciate your help. I'm assigning 500 points to this question because its pretty urgent I get this functionality up and running.