mIRC Home    About    Download    Register    News    Help

Topic Options
#261970 - 17/12/17 11:35 AM .dll for play multi-sounds at the same time???
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
Anyone know any .dll for allow you to play multiple .wav at the same time? Do you know... With /splay you can just play 1 .wav per time (i know you can play a .mp3, .mid AND a .wav at the same time, but i want to play more than 1 .wav at the same time, much more than 1)...

Top
#261973 - 17/12/17 02:35 PM Re: .dll for play multi-sounds at the same time??? [Re: SteveNunes]
FroggieDaFrog Offline
Hoopy frood

Registered: 16/04/10
Posts: 907
Loc: USA
The site is gone, but here is a link to an archive containing fmod_mirc.dll with accompanying files and docs. IIRC it can play multiple sounds at once.

Edit: Derp, that archive only has docs for the plugins. Currently searching for docs for the main dll


Edited by FroggieDaFrog (17/12/17 02:45 PM)
_________________________
I am SReject
My Stuff

Top
#261974 - 17/12/17 03:14 PM Re: .dll for play multi-sounds at the same time??? [Re: FroggieDaFrog]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
Originally Posted By: FroggieDaFrog
The site is gone, but here is a link to an archive containing fmod_mirc.dll with accompanying files and docs. IIRC it can play multiple sounds at once.

Edit: Derp, that archive only has docs for the plugins. Currently searching for docs for the main dll


Cool!!! Ty verymuch... im waiting here for the docs...

Top
#261975 - 17/12/17 03:54 PM Re: .dll for play multi-sounds at the same time??? [Re: SteveNunes]
FroggieDaFrog Offline
Hoopy frood

Registered: 16/04/10
Posts: 907
Loc: USA
I'm having difficulty. Maybe someone here on the forums can assist us in our search
_________________________
I am SReject
My Stuff

Top
#261976 - 17/12/17 04:01 PM Re: .dll for play multi-sounds at the same time??? [Re: FroggieDaFrog]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
Originally Posted By: FroggieDaFrog
I'm having difficulty. Maybe someone here on the forums can assist us in our search


Is that? http://escripting.net/addons.php?cat_id=2&file_id=78

Well at least I downloaded it and i found a examplescript inside and I just figured out how to play a .wav using it... BUT not tested yet if i can play multiple .wavs, going to test it right now

Top
#261977 - 17/12/17 04:11 PM Re: .dll for play multi-sounds at the same time??? [Re: SteveNunes]
FroggieDaFrog Offline
Hoopy frood

Registered: 16/04/10
Posts: 907
Loc: USA
That is it! In that archive checkout doc/fmod_mirc.txt for docs on how to use the dll.
_________________________
I am SReject
My Stuff

Top
#261978 - 17/12/17 04:17 PM Re: .dll for play multi-sounds at the same time??? [Re: FroggieDaFrog]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
Originally Posted By: FroggieDaFrog
That is it! In that archive checkout doc/fmod_mirc.txt for docs on how to use the dll.


Yeah I just did it! I played 2 .wavs at the same time right now... =)))))))) ty verymuch

Top
#261980 - 17/12/17 05:55 PM Re: .dll for play multi-sounds at the same time??? [Re: SteveNunes]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
In order to help everyone else who needs it also, i made a VERY SHORT info about the "JUST THE ENOUGH YOU NEED" for play multiple samples:

- Put both .dll files on your script folder (fmod.dll and fmod_mIRC.dll)
- Add on your script these lines:

on *:start: {
fmod FMOD_Connect $scriptdirfmod.dll
fmod SOUND_Init 44100 64 0
}
on *:unload: dll -u $scriptdirfmod_mIRC.dll
alias fmod return $dll($scriptdirfmod_mIRC.dll,$1,$2-)

- Now all you need to do is: First, load all your .wav files into samples like this:
fmod SOUND_Sample_Load <SAMPLE ID> $qt(FILENAME) <LOOP> $file(FILENAME).size
* <LOOP> is: 1 - no loop. 2 - Loop after ending. 4 - Play reverse after ending.

Example (loading 5 files)

fmod SOUND_Sample_Load 0 $qt(C:\Sound1.wav) 1 $file(C:\Sound1.wav).size
fmod SOUND_Sample_Load 1 $qt(C:\Sound2.wav) 1 $file(C:\Sound2.wav).size
fmod SOUND_Sample_Load 2 $qt(C:\Sound3.wav) 1 $file(C:\Sound3.wav).size
fmod SOUND_Sample_Load 3 $qt(C:\Sound4.wav) 1 $file(C:\Sound4.wav).size
fmod SOUND_Sample_Load 4 $qt(C:\Sound5.wav) 1 $file(C:\Sound5.wav).size

Now, play the sound with:

fmod SOUND_PlaySound <SAMPLE ID> [CHANNEL]
* If you dont specify a CHANNEL, it will set in the CHANNEL 0. If you specify -1 as CHANNEL, it will put in the first free channel found.
* If you try to play differ samples at the SAME CHANNEL, it will stop the preview SAMPLE to play the new one. So, the best and simple
* way on playing ANY sample without stoping any current playing sample is using -1 as CHANNEL.

Example playing 2 differ files at the same time (need to specify differ channels or -1)

fmod SOUND_PlaySound 0 0
fmod SOUND_PlaySound 1 1

OR:

fmod SOUND_PlaySound 0 -1
fmod SOUND_PlaySound 1 -1

For stop a current playing sample, just use

fmod SOUND_StopSound <CHANNEL> (CHANNEL, not SAMPLE ID)

Theres a lot of resources you can find on the fmod_mIRC.txt but these ones is just enough for the basic about playing multiple .wav files

I hope you enjoy =)


Edited by SteveNunes (17/12/17 06:00 PM)

Top
#262011 - 22/12/17 02:39 AM Re: .dll for play multi-sounds at the same time??? [Re: SteveNunes]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
Heres my first video about my mirc bomberman using the fmod.dll =)))))

https://youtu.be/38Ak26dK7TA


Edited by SteveNunes (22/12/17 02:40 AM)

Top