Corroder Grandmaster Cheater Supreme Reputation: 75 Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat May 16, 2020 3:46 pm Post subject: |
|
|
Aylin wrote: | I think I should copy 5 "winmm.dll". |
No you dont. If the songs are on local disk (not table file), use mciSendString like this :
Code: | function playMulti(song1, song2,...)
if not initializeMP3Player() then return end
local fileName
fileName = song1
MP3PlayerSendCommand("open "..fileName.." type mpegvideo alias FirstSound", 0, 0, 0)
MP3PlayerSendCommand("play FirstSound", 0, 0, 0)
fileName = song2
MP3PlayerSendCommand("open "..fileName.." type mpegvideo alias SecondSound", 0, 0, 0)
MP3PlayerSendCommand("play SecondSound",0, 0, 0)
-- add here until filename = song5
end
s1 = "E:\\test1.mp3"
s2 = "E:\\test2.mp3"
playMulti(s1,s2) |
EDIT:
If your song2 are on table file then you need to find them and save as local files on temporary dir. and then play the sounds from there.
And when then delete them all when the trainer closes. As usual, we did. _________________ Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
|
|